This commit is contained in:
cangui 2025-06-21 18:51:32 +02:00
parent a3a58987f0
commit dddf56a2d6

View File

@ -63,6 +63,8 @@ func RoutesPublic(r *mux.Router, bd *gorm.DB) {
r.PathPrefix("/templates/assets/").Handler( r.PathPrefix("/templates/assets/").Handler(
http.StripPrefix("/templates/assets/", http.FileServer(http.Dir(staticDir))), http.StripPrefix("/templates/assets/", http.FileServer(http.Dir(staticDir))),
) )
r.PathPrefix("/static/").Handler(
http.StripPrefix("/static/", http.FileServer(http.Dir("./static"))))
// Page de login // Page de login
r.HandleFunc("/login", renders.Login) r.HandleFunc("/login", renders.Login)