{"action":"closed","issue":{"url":"https://api.github.com/repos/expressjs/express/issues/2884","repository_url":"https://api.github.com/repos/expressjs/express","labels_url":"https://api.github.com/repos/expressjs/express/issues/2884/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/express/issues/2884/comments","events_url":"https://api.github.com/repos/expressjs/express/issues/2884/events","html_url":"https://github.com/expressjs/express/issues/2884","id":132742435,"number":2884,"title":"app.route('/something').all('/action', function(){})","user":{"login":"ganna-shmatova","id":7226694,"avatar_url":"https://avatars.githubusercontent.com/u/7226694?v=3","gravatar_id":"","url":"https://api.github.com/users/ganna-shmatova","html_url":"https://github.com/ganna-shmatova","followers_url":"https://api.github.com/users/ganna-shmatova/followers","following_url":"https://api.github.com/users/ganna-shmatova/following{/other_user}","gists_url":"https://api.github.com/users/ganna-shmatova/gists{/gist_id}","starred_url":"https://api.github.com/users/ganna-shmatova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganna-shmatova/subscriptions","organizations_url":"https://api.github.com/users/ganna-shmatova/orgs","repos_url":"https://api.github.com/users/ganna-shmatova/repos","events_url":"https://api.github.com/users/ganna-shmatova/events{/privacy}","received_events_url":"https://api.github.com/users/ganna-shmatova/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-10T16:07:56Z","updated_at":"2016-02-11T14:22:41Z","closed_at":"2016-02-11T14:22:41Z","body":"```js\r\nvar router = express.Router();\r\n\r\n//user\r\nrouter.route('/user')\r\n.all(function(req, res, next){\r\n\tif(!req.body.username)\r\n\t\treq.body.username = req.session.username;\r\n\tnext();\r\n}).all('/get/all', function(req, res){\r\n\tcollection.user.get({}, function(err, data){\r\n\t\tif(err)\r\n\t\t\treturn res.error(err);\r\n\t\tres.send(data);\r\n\t});\r\n});\r\n```\r\n\r\nIs something to fit this use case possible? or should I just be making a second router?\r\n\r\ncurrently this code tells me it's expecting a function and not a string (so doesn't work)."}}