home to your local SPACEGIRL 💫 arimelody.space
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix core admin css and js not rendering for unauthorised users

+13 -3
+13 -3
admin/http.go
··· 55 55 mux.Handle("/tracks", requireAccount(serveTracks(app))) 56 56 mux.Handle("/tracks/", requireAccount(serveTracks(app))) 57 57 58 - mux.Handle("/static/", requireAccount( 59 - http.StripPrefix("/static", 60 - view.ServeFiles("./admin/static")))) 58 + mux.Handle("/static/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 59 + if r.URL.Path == "/static/admin.css" { 60 + http.ServeFile(w, r, "./admin/static/admin.css") 61 + return 62 + } 63 + if r.URL.Path == "/static/admin.js" { 64 + http.ServeFile(w, r, "./admin/static/admin.js") 65 + return 66 + } 67 + requireAccount( 68 + http.StripPrefix("/static", 69 + view.ServeFiles("./admin/static"))).ServeHTTP(w, r) 70 + })) 61 71 62 72 mux.Handle("/", requireAccount(AdminIndexHandler(app))) 63 73