+ to the git
This commit is contained in:
11
handler/index.go
Normal file
11
handler/index.go
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user