Update API response mime type

This commit is contained in:
Alexey Khit
2023-05-31 14:41:57 +03:00
parent 397eb0b6ee
commit 888159d2b6
5 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ func apiHandle(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusCreated)
data := fmt.Sprintf(`{"share":%q,"pwd":%q}`, share, pwd)
api.ResponseRawJSON(w, data)
api.Response(w, data, api.MimeJSON)
case "DELETE":
if ok {