use middlewares for notfoundhandler routes

This commit is contained in:
sentriz
2020-01-22 13:44:54 +00:00
parent fa12cb4150
commit 7de773d4c5
4 changed files with 32 additions and 10 deletions

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ import (
)
func (c *Controller) ServeNotFound(r *http.Request) *Response {
return &Response{template: "not_found.tmpl"}
return &Response{template: "not_found.tmpl", code: 404}
}
func (c *Controller) ServeLogin(r *http.Request) *Response {