From c6d0cd47b33abe7f380bec8737b6662a7dc5c194 Mon Sep 17 00:00:00 2001 From: benbierens Date: Thu, 27 Apr 2023 14:02:36 +0200 Subject: [PATCH] api-names slightly kinder to json serializers --- codex/rest/api.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codex/rest/api.nim b/codex/rest/api.nim index da3cb8cc..d918d544 100644 --- a/codex/rest/api.nim +++ b/codex/rest/api.nim @@ -271,8 +271,8 @@ proc initRestApi*(node: CodexNodeRef, conf: CodexConf): RestRouter = node.discovery.dhtRecord.get.toURI else: "", - "engine-peers": formatEnginePeers(node.engine.peers.peers), - "switch-peers": formatSwitchPeers(node.switch.peerStore[KeyBook].book), + "enginePeers": formatEnginePeers(node.engine.peers.peers), + "switchPeers": formatSwitchPeers(node.switch.peerStore[KeyBook].book), "codex": { "version": $codexVersion, "revision": $codexRevision