From 32bca9f326b380a556d316bbaf95525a689b8be9 Mon Sep 17 00:00:00 2001 From: julien Date: Wed, 18 Jun 2025 15:46:09 +0200 Subject: [PATCH] add open vlc --- main.go | 3 +++ 1 file changed, 3 insertions(+) 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))