This commit is contained in:
julien 2025-06-18 16:23:20 +02:00
parent b5d0ba2000
commit f714eac638

View File

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