orte provider

This commit is contained in:
Simon Martens
2025-09-25 15:01:26 +02:00
parent 6ddded953b
commit f90468085c
9 changed files with 573 additions and 8 deletions

View File

@@ -7,6 +7,13 @@ import (
func GetPlace(kgpz *xmlmodels.Library) fiber.Handler {
return func(c *fiber.Ctx) error {
return c.Render("/ort/", nil)
placeID := c.Params("place")
place := kgpz.Places.Item(placeID)
if place == nil {
return c.SendStatus(fiber.StatusNotFound)
}
return c.Render("/ort/", fiber.Map{"place": place})
}
}