Chore: standardize API returns
This commit is contained in:
@ -33,8 +33,7 @@ func getRules(w http.ResponseWriter, r *http.Request) {
|
||||
})
|
||||
}
|
||||
|
||||
w.WriteHeader(http.StatusOK)
|
||||
render.Respond(w, r, map[string][]Rule{
|
||||
render.JSON(w, r, map[string][]Rule{
|
||||
"rules": rules,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user