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
+1 -1
View File
@@ -321,7 +321,7 @@ func (h *RoutesHandler) DeleteRoute(w http.ResponseWriter, r *http.Request) {
return
}
util.WriteJSONObject(w, "")
util.WriteJSONObject(w, emptyObject{})
}
// GetRoute handles a route Get request identified by ID