This commit is contained in:
julien 2025-06-18 16:47:14 +02:00
parent f7818e3f86
commit d35b05b60b

View File

@ -54,7 +54,7 @@ func RoutesPublic(r *mux.Router, bd *gorm.DB) {
relPath, _ := filepath.Rel(uploadDir, path)
// Important : remplacer \ par / pour Windows
relPath = filepath.ToSlash(relPath)
fileURL := fmt.Sprintf("http://https://media.canguidev.fr/upload/%s", relPath)
fileURL := fmt.Sprintf("https://media.canguidev.fr/upload/%s", relPath)
fmt.Fprintln(w, fileURL)
return nil
})