refactor(SNM config): Move rest config top level

This commit is contained in:
Emil Ivanichkov 2024-03-11 16:51:59 +02:00 committed by Emil Ivanichkov
parent ab80677ff5
commit f54600b17e
1 changed files with 35 additions and 33 deletions

View File

@ -17,11 +17,6 @@ type
type
StatusNodeManagerConfig* = object
case cmd* {.
command
defaultValue: SNMStartUpCmd.noCommand .}: SNMStartUpCmd
of SNMStartUpCmd.noCommand:
restEnabled* {.
desc: "Enable the REST server"
defaultValue: true
@ -56,6 +51,13 @@ type
desc: "Maximum size of REST request headers (kilobytes)"
name: "rest-max-headers-size" .}: Natural
case cmd* {.
command
defaultValue: SNMStartUpCmd.noCommand .}: SNMStartUpCmd
of SNMStartUpCmd.noCommand:
discard
of SNMStartUpCmd.pair:
qr* {.
desc: "A string representation of the QR code produced by the GUI"