Added templ, tailwind and frankenui

This commit is contained in:
2025-02-05 01:51:06 +11:00
parent 5c8d4c5158
commit b6feed7c0c
18 changed files with 1754 additions and 21 deletions

18
handlers/index.go Normal file
View File

@@ -0,0 +1,18 @@
package handlers
import (
"net/http"
"projectreshoot/view/page"
)
func HandleRoot() http.Handler {
return http.HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/" {
http.NotFound(w, r)
return
}
page.Index().Render(r.Context(), w)
},
)
}