refac: fixed, better, smarter, correct dependency injection
This commit is contained in:
1 parent
d895477b8c
commit
a77a5ad314
35 files changed
+169
-144
No files matched your search
@@ -33,7 +33,7 @@ func PostImage(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
newJson := map[string]interface{}{"location": newImage.Path}
|
||||
newJson := map[string]any{"location": newImage.Path}
|
||||
newJsonBytes, _ := json.Marshal(newJson)
|
||||
|
||||
_, _ = w.Write(newJsonBytes)
|
||||
|
||||
Reference in new issue
Block a user