add open vlc
This commit is contained in:
parent
17848d1e84
commit
32bca9f326
3
main.go
3
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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user