add 404 handler for admin

This commit is contained in:
sentriz
2019-08-21 15:04:40 +01:00
parent 7580835146
commit e7c98808bb
6 changed files with 19 additions and 7 deletions

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ import (
"senan.xyz/g/gonic/server/lastfm"
)
func (c *Controller) ServeNotFound(w http.ResponseWriter, r *http.Request) *Response {
return &Response{template: "not_found.tmpl"}
}
func (c *Controller) ServeLogin(w http.ResponseWriter, r *http.Request) *Response {
return &Response{template: "login.tmpl"}
}