{"action":"opened","issue":{"url":"https://api.github.com/repos/expressjs/express/issues/3144","repository_url":"https://api.github.com/repos/expressjs/express","labels_url":"https://api.github.com/repos/expressjs/express/issues/3144/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/express/issues/3144/comments","events_url":"https://api.github.com/repos/expressjs/express/issues/3144/events","html_url":"https://github.com/expressjs/express/issues/3144","id":191969734,"number":3144,"title":"app.mountpath only gives the last attached parent mountpaths","user":{"login":"derMart","id":1069456,"avatar_url":"https://avatars.githubusercontent.com/u/1069456?v=3","gravatar_id":"","url":"https://api.github.com/users/derMart","html_url":"https://github.com/derMart","followers_url":"https://api.github.com/users/derMart/followers","following_url":"https://api.github.com/users/derMart/following{/other_user}","gists_url":"https://api.github.com/users/derMart/gists{/gist_id}","starred_url":"https://api.github.com/users/derMart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derMart/subscriptions","organizations_url":"https://api.github.com/users/derMart/orgs","repos_url":"https://api.github.com/users/derMart/repos","events_url":"https://api.github.com/users/derMart/events{/privacy}","received_events_url":"https://api.github.com/users/derMart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-28T10:30:24Z","updated_at":"2016-11-28T10:30:24Z","closed_at":null,"body":"app.mountpath API documentation states:\r\n> If a sub-app is mounted on multiple path patterns, app.mountpath returns the list of patterns it is mounted on, as shown in the following example.\r\n\r\nIf I run\r\n\r\n```\r\nvar e = express();\r\nvar n = express();\r\n\r\nn.get('/sub', function(req, res) { res.end(); }\r\n\r\ne.use('/p1',n);\r\ne.use('/p2',n);\r\n\r\nconsole.log(n.mountpath);\r\n```\r\nresults in\r\n\r\n> /p2\r\n\r\nso it doesn't give all mounted paths but only the last attached."}}
{"actor":{"display_login":"derMart"}}