mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 17:25:32 +00:00
Grupperiung seiten
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"github.com/Theodor-Springmann-Stiftung/lenz-web/xmlmodels"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
const DEFAULT_YEAR = 1765
|
||||
|
||||
func GetIndex(c *fiber.Ctx) error {
|
||||
return c.Redirect(LETTERS_URL + "?year=" + strconv.Itoa(DEFAULT_YEAR))
|
||||
type DateRange struct {
|
||||
Label string
|
||||
Start int
|
||||
End int
|
||||
Letters []xmlmodels.Meta
|
||||
}
|
||||
|
||||
func GetIndex(c *fiber.Ctx) error {
|
||||
return c.Redirect(LETTERS_URL + "?range=all")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user