Skip to content

Commit

Permalink
fix: admin REST API to be enabled only if config is set (#2218)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyaprem committed Nov 24, 2023
1 parent aeb77a3 commit 110de90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/wakunode2/app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,9 @@ proc startRestServer(app: App, address: ValidIpAddress, port: Port, conf: WakuNo
return defaultResponse()

let server = ? newRestHttpServer(address, port, requestErrorHandler = requestErrorHandler)

## Admin REST API
installAdminApiHandlers(server.router, app.node)
if conf.restAdmin:
installAdminApiHandlers(server.router, app.node)

## Debug REST API
installDebugApiHandlers(server.router, app.node)
Expand Down

0 comments on commit 110de90

Please sign in to comment.