Skip to content

Commit c6cf6d4

Browse files
committed
fix(api): fixed issue with api content-type in api success messages, fixes grafana#6160
1 parent 72f81b3 commit c6cf6d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func Json(status int, body interface{}) *NormalResponse {
7979
func ApiSuccess(message string) *NormalResponse {
8080
resp := make(map[string]interface{})
8181
resp["message"] = message
82-
return Respond(200, resp)
82+
return Json(200, resp)
8383
}
8484

8585
func ApiError(status int, message string, err error) *NormalResponse {

0 commit comments

Comments
 (0)