diff --git a/internal/route/main.go b/internal/route/main.go index 9c46f61..96e5cdf 100644 --- a/internal/route/main.go +++ b/internal/route/main.go @@ -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 })