correct static files path in app
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 40s
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 40s
This commit is contained in:
@@ -35,7 +35,7 @@ func (app *App) Routes() http.Handler {
|
||||
mux.Handle("GET /article/{id}", http.HandlerFunc(app.Article))
|
||||
|
||||
// serve files from the "static" directory
|
||||
mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./assets/static"))))
|
||||
mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./app/static"))))
|
||||
|
||||
return mux
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user