Skip to content

Commit

Permalink
Merge pull request #398 from aredridel/express-5-compat
Browse files Browse the repository at this point in the history
Handle express 5 property to get router
  • Loading branch information
grawk committed Feb 5, 2020
2 parents e427f78 + ff1bbea commit f6aaaee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -50,7 +50,7 @@ module.exports = function (options) {
var start, error, promise;

// Remove sacrificial express app
parent._router.stack.pop();
(parent._router || parent.router).stack.pop();

// Since this particular `app` instance is
// subsequently deleted, the `mountpath` is
Expand Down

0 comments on commit f6aaaee

Please sign in to comment.