Next/Prev stuff

This commit is contained in:
Simon Martens
2025-03-30 18:12:52 +02:00
parent 316e8e3f58
commit 0e2c6360bf
25 changed files with 355 additions and 67 deletions

16
controllers/static.go Normal file
View File

@@ -0,0 +1,16 @@
package controllers
import (
"strings"
"github.com/gofiber/fiber/v2"
)
func Static(url string) fiber.Handler {
if !strings.HasSuffix(url, "/") {
url += "/"
}
return func(c *fiber.Ctx) error {
return c.Render(url, map[string]any{})
}
}