Files
lenz-web/controllers/static.go
Simon Martens 0e2c6360bf Next/Prev stuff
2025-03-30 18:12:52 +02:00

17 lines
248 B
Go

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{})
}
}