mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-19 03:12:35 +00:00
37a3a4fadd
- Separate out types and methods into appropriate module - Add util folder for small utils used in multiple independent places - Update paths
14 lines
315 B
Nim
14 lines
315 B
Nim
import
|
|
json_rpc/rpcserver,
|
|
../wakunode2
|
|
|
|
proc installDebugApiHandlers*(node: WakuNode, rpcsrv: RpcServer) =
|
|
|
|
## Debug API version 1 definitions
|
|
|
|
rpcsrv.rpc("get_waku_v2_debug_v1_info") do() -> WakuInfo:
|
|
## Returns information about WakuNode
|
|
debug "get_waku_v2_debug_v1_info"
|
|
|
|
return node.info()
|