add open vlc

This commit is contained in:
julien 2025-06-18 15:46:09 +02:00
parent 17848d1e84
commit 32bca9f326

View File

@ -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))