Commit c6cf6d46 by Torkel Ödegaard

fix(api): fixed issue with api content-type in api success messages, fixes #6160

parent 72f81b3b
......@@ -79,7 +79,7 @@ func Json(status int, body interface{}) *NormalResponse {
func ApiSuccess(message string) *NormalResponse {
resp := make(map[string]interface{})
resp["message"] = message
return Respond(200, resp)
return Json(200, resp)
}
func ApiError(status int, message string, err error) *NormalResponse {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment