{"action":"created","issue":{"url":"https://api.github.com/repos/bower/registry/issues/127","labels_url":"https://api.github.com/repos/bower/registry/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/bower/registry/issues/127/comments","events_url":"https://api.github.com/repos/bower/registry/issues/127/events","html_url":"https://github.com/bower/registry/pull/127","id":73344110,"number":127,"title":"Small refactor for the routes file","user":{"login":"noamokman","id":6004557,"avatar_url":"https://avatars.githubusercontent.com/u/6004557?v=3","gravatar_id":"","url":"https://api.github.com/users/noamokman","html_url":"https://github.com/noamokman","followers_url":"https://api.github.com/users/noamokman/followers","following_url":"https://api.github.com/users/noamokman/following{/other_user}","gists_url":"https://api.github.com/users/noamokman/gists{/gist_id}","starred_url":"https://api.github.com/users/noamokman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noamokman/subscriptions","organizations_url":"https://api.github.com/users/noamokman/orgs","repos_url":"https://api.github.com/users/noamokman/repos","events_url":"https://api.github.com/users/noamokman/events{/privacy}","received_events_url":"https://api.github.com/users/noamokman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-05T15:21:01Z","updated_at":"2015-05-05T15:30:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bower/registry/pulls/127","html_url":"https://github.com/bower/registry/pull/127","diff_url":"https://github.com/bower/registry/pull/127.diff","patch_url":"https://github.com/bower/registry/pull/127.patch"},"body":"Hi there,\r\nJust wanted to suggest this way of handling the excess to the express app from the routes file.\r\nI made the routes file expose a function that accepts the express app.\r\nTherefore we can avoid this line:\r\n```js\r\nvar app = module.parent.exports.app;\r\n```"},"comment":{"url":"https://api.github.com/repos/bower/registry/issues/comments/99116517","html_url":"https://github.com/bower/registry/pull/127#issuecomment-99116517","issue_url":"https://api.github.com/repos/bower/registry/issues/127","id":99116517,"user":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T15:30:55Z","updated_at":"2015-05-05T15:30:55Z","body":":clap: so much better thanks @noamokman "}}