diff --git a/internal/route/main.go b/internal/route/main.go index d27337d..8b929ff 100644 --- a/internal/route/main.go +++ b/internal/route/main.go @@ -63,6 +63,8 @@ func RoutesPublic(r *mux.Router, bd *gorm.DB) { r.PathPrefix("/templates/assets/").Handler( http.StripPrefix("/templates/assets/", http.FileServer(http.Dir(staticDir))), ) + r.PathPrefix("/static/").Handler( + http.StripPrefix("/static/", http.FileServer(http.Dir("./static")))) // Page de login r.HandleFunc("/login", renders.Login)