refactor(communities): add getAllCommunities function (#133)
This commit is contained in:
parent
bc3d85bad1
commit
3326813d77
|
@ -6,4 +6,7 @@ export response_type
|
||||||
|
|
||||||
proc getJoinedComunities*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
proc getJoinedComunities*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||||
let payload = %* []
|
let payload = %* []
|
||||||
result = callPrivateRPC("joinedCommunities".prefix, payload)
|
result = callPrivateRPC("joinedCommunities".prefix, payload)
|
||||||
|
|
||||||
|
proc getAllCommunities*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||||
|
result = callPrivateRPC("communities".prefix)
|
Loading…
Reference in New Issue