Skip to content

Commit

Permalink
Handle express 5 property to get router
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Jul 7, 2015
1 parent a6687d0 commit ff1bbea
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 ff1bbea

Please sign in to comment.