From 89df9a0c8204b0d46b89079d41fdf841f5218e25 Mon Sep 17 00:00:00 2001 From: bizk Date: Sat, 29 Oct 2022 18:20:23 -0300 Subject: [PATCH] small fix --- src/nodes/nodes.routes.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nodes/nodes.routes.config.ts b/src/nodes/nodes.routes.config.ts index 649649e..4c4e391 100644 --- a/src/nodes/nodes.routes.config.ts +++ b/src/nodes/nodes.routes.config.ts @@ -69,7 +69,7 @@ export class NodesRoutes extends CommonRoutesConfig { }); this.app - .route(`/${USERS}/:userId/${NODES}/networkConfiguration`) + .route(`/${USERS}/:userId/networkConfiguration`) .all((req: Request, res: Response, next: NextFunction) => { // Middleware executed on every route. @TODO: Validation @TODO: Authentication @TODO: Hyperledger (some) next(); @@ -87,7 +87,7 @@ export class NodesRoutes extends CommonRoutesConfig { Bootstrap: [], }, }; - res.status(200).send(node); + res.status(200).send(networkConfiguration); }); return this.app; }