diff options
author | Emile <hanemile@protonmail.com> | 2020-03-15 22:54:42 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-03-15 22:54:42 +0100 |
commit | 873ea3b352402635599251bbf2f628fb8f907fa5 (patch) | |
tree | b19875a6749b23b8190b9347a32aca6e3d54b2a9 /src/http | |
parent | d47da2bb3aa37a22f0da428f9b7a5580110902ee (diff) |
corrected the static / asset fuckup
Diffstat (limited to 'src/http')
-rw-r--r-- | src/http/http.go | 6 |
1 files changed, 3 insertions, 3 deletions
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") |