Skip to content

Commit

Permalink
Fix static handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jmshrv committed Mar 21, 2024
1 parent 20585dc commit 8719f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
}

r := mux.NewRouter().PathPrefix("/admin").Subrouter()
r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static/"))))
r.PathPrefix("/static/").Handler(http.StripPrefix("/admin/static/", http.FileServer(http.Dir("./static/"))))
r.PathPrefix("/results").HandlerFunc(handleResults)
r.Path("/").HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "./static/index.html")
Expand Down

0 comments on commit 8719f1f

Please sign in to comment.