return empty object on all handlers instead of empty string

This commit is contained in:
Pascal Fischer
2023-03-29 18:46:40 +02:00
parent 9746a7f61a
commit 03abdfa112
8 changed files with 10 additions and 7 deletions

View File

@@ -222,7 +222,7 @@ func (h *RulesHandler) DeleteRule(w http.ResponseWriter, r *http.Request) {
return
}
util.WriteJSONObject(w, "")
util.WriteJSONObject(w, emptyObject{})
}
// GetRule handles a group Get request identified by ID