fix silly admin routing nonsense
This commit is contained in:
parent
09c09b6310
commit
a33e6717e0
6 changed files with 57 additions and 58 deletions
|
|
@ -26,10 +26,10 @@ func Handler(app *model.AppState) http.Handler {
|
|||
mux.Handle("/logout", core.RequireAccount(auth.LogoutHandler(app)))
|
||||
|
||||
mux.Handle("/logs", core.RequireAccount(logs.Handler(app)))
|
||||
mux.Handle("/music/", core.RequireAccount(http.StripPrefix("/music", music.Handler(app))))
|
||||
mux.Handle("/blogs/", core.RequireAccount(http.StripPrefix("/blogs", blog.Handler(app))))
|
||||
mux.Handle("/music/", core.RequireAccount(music.Handler(app)))
|
||||
mux.Handle("/blogs/", core.RequireAccount(blog.Handler(app)))
|
||||
|
||||
mux.Handle("/account/", core.RequireAccount(http.StripPrefix("/account", account.Handler(app))))
|
||||
mux.Handle("/account/", core.RequireAccount(account.Handler(app)))
|
||||
|
||||
mux.Handle("/static/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.Path == "/static/admin.css" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue