瀏覽代碼

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

Torkel Ödegaard 9 年之前
父節點
當前提交
c6cf6d4655
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/api/common.go

+ 1 - 1
pkg/api/common.go

@@ -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 {