refactor: replaced topology axios call with bee-js

This commit is contained in:
Vojtech Simetka
2021-04-02 10:44:44 +02:00
parent d711b4cd85
commit 53dd4e1741
8 changed files with 70 additions and 79 deletions
+1 -7
View File
@@ -62,14 +62,8 @@ export const beeDebugApi = {
listPeers() {
return beeJSDebugClient().getPeers()
},
blockListedPeers() {
return beeDebugApiClient().get(`/blocklist`)
},
removePeer(peerId: string) {
return beeDebugApiClient().delete(`/peers/${peerId}`)
},
topology() {
return beeDebugApiClient().get(`/topology`)
return beeJSDebugClient().getTopology()
},
ping(peerId: string) {
return beeDebugApiClient().post(`/pingpong/${peerId}`)