up
This commit is contained in:
parent
f7818e3f86
commit
d35b05b60b
@ -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
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user