mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 17:25:32 +00:00
Next/Prev stuff
This commit is contained in:
16
controllers/static.go
Normal file
16
controllers/static.go
Normal 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{})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user