add 404 handler for admin
This commit is contained in:
@@ -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"}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user