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