initial page

This commit is contained in:
2025-02-13 08:24:00 +01:00
parent 2cc8a03491
commit 32fea815f2
47 changed files with 2490 additions and 0 deletions

20
middlewares/notfound.go Normal file
View File

@@ -0,0 +1,20 @@
package middlewares
import (
"log"
"net/http"
"github.com/a-h/templ"
)
func NotFound(next http.Handler, component templ.Component) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
res := newStatusResponseWriter(w)
log.Println("before NotFound: ", res.status)
next.ServeHTTP(res, r)
log.Println("after NotFound: ", res.status)
if res.status == 0 {
}
})
}