From b5d0ba2000e125c59f178d35e44b523a121262b5 Mon Sep 17 00:00:00 2001 From: julien Date: Wed, 18 Jun 2025 16:19:51 +0200 Subject: [PATCH] up --- internal/route/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/route/main.go b/internal/route/main.go index 620ac8a..a6e3b2b 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://%s:4000/upload/%s", getLocalIP(), relPath) + fileURL := fmt.Sprintf("http://%s:4000/upload/%s", relPath) fmt.Fprintln(w, fileURL) return nil })