mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 03:25:04 +00:00
fix: admin REST API to be enabled only if config is set (#2218)
This commit is contained in:
parent
aeb77a3e75
commit
110de90ff6
@ -674,8 +674,8 @@ proc startRestServer(app: App, address: ValidIpAddress, port: Port, conf: WakuNo
|
||||
return defaultResponse()
|
||||
|
||||
let server = ? newRestHttpServer(address, port, requestErrorHandler = requestErrorHandler)
|
||||
|
||||
## Admin REST API
|
||||
if conf.restAdmin:
|
||||
installAdminApiHandlers(server.router, app.node)
|
||||
|
||||
## Debug REST API
|
||||
|
Loading…
x
Reference in New Issue
Block a user