+ to the git

This commit is contained in:
itsig0
2024-03-20 22:56:17 +01:00
commit cc4bd9febc
86 changed files with 11153 additions and 0 deletions

11
handler/index.go Normal file
View File

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