api-names slightly kinder to json serializers

This commit is contained in:
benbierens 2023-04-27 14:02:36 +02:00 committed by Eric Mastro
parent 5a3b8948b6
commit c6d0cd47b3
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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