add middlewares, handlers and database models
This commit is contained in:
parent
979a415b95
commit
7e288ea67a
24 changed files with 1045 additions and 14 deletions
14
internal/handler/home.go
Normal file
14
internal/handler/home.go
Normal 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"))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue