add middlewares, handlers and database models

This commit is contained in:
juancwu 2025-12-16 10:46:34 -05:00
commit 7e288ea67a
24 changed files with 1045 additions and 14 deletions

14
internal/handler/home.go Normal file
View file

@ -0,0 +1,14 @@
package handler
import "net/http"
type homeHandler struct{}
func NewHomeHandler() *homeHandler {
return &homeHandler{}
}
func (home *homeHandler) NotFoundPage(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNotFound)
w.Write([]byte("404 Page Not Found"))
}