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
@@ -12,7 +12,7 @@ import (
)
func apiOK(w http.ResponseWriter, r *http.Request) {
api.ResponseRawJSON(w, `{"status":1,"payload":{}}`)
api.Response(w, `{"status":1,"payload":{}}`, api.MimeJSON)
}
func apiStream(w http.ResponseWriter, r *http.Request) {