+ update to fiber v3

This commit is contained in:
itsig0
2024-03-22 17:53:12 +01:00
parent 57f809cd85
commit b12688c718
7 changed files with 65 additions and 39 deletions

View File

@@ -1,11 +1,11 @@
package handler
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v3"
"github.com/itsig0/tallytome/view/home"
)
func Index(c *fiber.Ctx) error {
func Index(c fiber.Ctx) error {
hx := len(c.GetReqHeaders()["Hx-Request"]) > 0
return render(c, home.Show(hx))
}