mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-28 16:55:32 +00:00
Index functions
This commit is contained in:
@@ -8,6 +8,9 @@ import (
|
||||
const DEFAULT_YEAR = 1765
|
||||
|
||||
func GetIndex(fiber *fiber.Ctx) error {
|
||||
_ = xmlmodels.Get()
|
||||
return fiber.Render("/", nil)
|
||||
lib := xmlmodels.Get()
|
||||
// Years
|
||||
years, yearmap := lib.Years()
|
||||
|
||||
return fiber.Render("/", map[string]any{"years": years, "yearmap": yearmap})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user