From 296a0309970b9ef34de3a30fe414e15f7a4e79bc Mon Sep 17 00:00:00 2001 From: gmemstr Date: Mon, 18 Dec 2017 21:32:27 -0800 Subject: [PATCH] Moving from using /assets to /static Compensating for how webpack builds the new frontend. --- router/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/router/router.go b/router/router.go index 1039b43..e1cae5b 100644 --- a/router/router.go +++ b/router/router.go @@ -49,6 +49,7 @@ func Init() *mux.Router { // "Static" paths r.PathPrefix("/assets/").Handler(http.StripPrefix("/assets/", http.FileServer(http.Dir("assets/web/static")))) + r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("assets/web/static")))) r.PathPrefix("/download/").Handler(http.StripPrefix("/download/", http.FileServer(http.Dir("podcasts")))) // Paths that require specific handlers