Grupperiung seiten

This commit is contained in:
Simon Martens
2025-09-17 11:53:43 +02:00
parent 9bfebe5828
commit 96a87ad7b6
6 changed files with 92 additions and 34 deletions

View File

@@ -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")
}