feat: add host as parameter to index

This commit is contained in:
2023-07-20 08:50:24 +02:00
parent 56c9d2e320
commit 80ffe559ef
2 changed files with 6 additions and 4 deletions

View File

@@ -138,7 +138,9 @@ func (s *RestServer) loadViews(imagesDir string) {
s.app.Static("/images", imagesDir)
s.app.Get("/", func(c *fiber.Ctx) error {
return c.Render("index", fiber.Map{})
return c.Render("index", fiber.Map{
"host": s.config.Host,
})
})
s.app.Get("/error", func(c *fiber.Ctx) error {