From 873ea3b352402635599251bbf2f628fb8f907fa5 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 15 Mar 2020 22:54:42 +0100 Subject: corrected the static / asset fuckup --- src/http/http.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/http') diff --git a/src/http/http.go b/src/http/http.go index 1ab3afb..195a0f6 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -18,9 +18,9 @@ func Server() { r := mux.NewRouter() // static js / css hosting - static := r.PathPrefix("/static/").Subrouter() - fs := http.FileServer(http.Dir("./hosted/static")) - static.PathPrefix("/").Handler(http.StripPrefix("/static/", fs)) + assets := r.PathPrefix("/assets/").Subrouter() + fs := http.FileServer(http.Dir("./hosted/assets")) + assets.PathPrefix("/").Handler(http.StripPrefix("/assets/", fs)) r.HandleFunc("/download", downloadHandler).Methods("GET") -- cgit 1.4.1