diff --git a/main.go b/main.go index 03bf2a0..489541e 100644 --- a/main.go +++ b/main.go @@ -39,6 +39,9 @@ func main() { // 6. Enregistrer les routes protégées sur ce sous-routeur route.RoutesProtected(protected, bd) setupPortMappingWithFallback(4000, 4000) + // 6.5. Exposer le dossier upload + fs := http.StripPrefix("/upload/", http.FileServer(http.Dir("/app/upload"))) + r.PathPrefix("/upload/").Handler(fs) // 7. Lancer le serveur sur le port 4000 log.Fatal(http.ListenAndServe(":4000", r))