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
@@ -66,7 +66,7 @@ func (h *PeersHandler) deletePeer(accountID, userID string, peerID string, w htt
util.WriteError(err, w)
return
}
util.WriteJSONObject(w, "")
util.WriteJSONObject(w, emptyObject{})
}
// HandlePeer handles all peer requests for GET, PUT and DELETE operations