mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-19 17:21:10 +01:00
Moving from using /assets to /static
Compensating for how webpack builds the new frontend.
This commit is contained in:
parent
b18279c393
commit
296a030997
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue