mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(api): fixed issue with api content-type in api success messages, fixes #6160
This commit is contained in:
parent
72f81b3b2a
commit
c6cf6d4655
@ -79,7 +79,7 @@ func Json(status int, body interface{}) *NormalResponse {
|
|||||||
func ApiSuccess(message string) *NormalResponse {
|
func ApiSuccess(message string) *NormalResponse {
|
||||||
resp := make(map[string]interface{})
|
resp := make(map[string]interface{})
|
||||||
resp["message"] = message
|
resp["message"] = message
|
||||||
return Respond(200, resp)
|
return Json(200, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ApiError(status int, message string, err error) *NormalResponse {
|
func ApiError(status int, message string, err error) *NormalResponse {
|
||||||
|
Loading…
Reference in New Issue
Block a user