Added static pages

This commit is contained in:
Simon Martens
2024-12-03 20:15:39 +01:00
parent 71927afebd
commit 5f6886a144
17 changed files with 72 additions and 30 deletions

9
controllers/static.go Normal file
View File

@@ -0,0 +1,9 @@
package controllers
import "github.com/gofiber/fiber/v2"
func Get(path string) fiber.Handler {
return func(c *fiber.Ctx) error {
return c.Render(path, nil)
}
}