{"action":"opened","issue":{"number":862,"created_at":"2011-10-10T01:03:53Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"app.match and app.lookup functions do NOT match API description.  For example, if you call `app.lookup.get(\"/foo\");`, it will return an array of Objects, not an array of Functions, as described.\r\n\r\nExample:\r\n```javascript\r\nvar express = require(\"express\");\r\nvar app = express.createServer();\r\n\r\napp.get(\"/foo\", function(req, res) {\r\n    res.json({'hello': 'world'});\r\n});\r\napp.get(\"/bar\", function(req, res) {\r\n    res.json({'hello': 'bar'});\r\n});\r\nvar test = app.lookup.get(\"/foo\");\r\nconsole.log(test[0]);\r\nconsole.log(typeof test[0]);\r\nconsole.log(test[0].callbacks[0].toString() );\r\n```\r\nWill output:\r\n```\r\n{ path: '/foo',\r\n  method: 'get',\r\n  callbacks: [ [Function] ],\r\n  keys: [],\r\n  regexp: /^\\/foo\\/?$/i }\r\nobject\r\nfunction (req, res) {\r\n        res.json({'hello': 'world'});\r\n}\r\n```","comments":0,"title":"app.match / app.lookup return Objects, not Functions","updated_at":"2011-10-10T01:03:53Z","url":"https://api.github.com/repos/visionmedia/express/issues/862","id":1860073,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/9982a3c710b42a4e9a08a55aeb53402c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/bminer","id":73755,"login":"bminer"},"html_url":"https://github.com/visionmedia/express/issues/862","labels":[],"state":"open"},"legacy":{"number":862,"action":"opened","issue":1860073}}