add 404 handler for admin

This commit is contained in:
sentriz
2019-07-31 17:00:44 +01:00
parent 7580835146
commit e7c98808bb
6 changed files with 19 additions and 7 deletions

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"}
}