Moving from using /assets to /static

Compensating for how webpack builds the new frontend.
This commit is contained in:
gmemstr 2017-12-18 21:32:27 -08:00
parent b18279c393
commit 296a030997

View file

@ -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