Skip to content

Commit

Permalink
fix express.Router in app-schema-router
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Jun 21, 2023
1 parent 7959163 commit a09c02f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/app-schema-router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class SchemaRouterApp {
),
];

return express.Router().use(this.apiPath, [
(req, res, next) => {
return [
express.Router().use(this.apiPath, (req, res, next) => {
req.routerId = this.routerFn(req, res);
next();
},
...conditionalApps,
]);
}),
...conditionalApps
];
}

/**
Expand Down

0 comments on commit a09c02f

Please sign in to comment.