From 8719f1f53d00e06e075bb0246ba0d68613042c06 Mon Sep 17 00:00:00 2001 From: James Harvey <44349936+jmshrv@users.noreply.github.com> Date: Thu, 21 Mar 2024 11:44:44 +0000 Subject: [PATCH] Fix static handling --- admin/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/main.go b/admin/main.go index a3fad95..650d7a0 100644 --- a/admin/main.go +++ b/admin/main.go @@ -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")