feat: add host as parameter to index
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user