{"action":"created","comment":{"url":"https://api.github.com/repos/worldline/swaggerize-express/pulls/comments/40189280","id":40189280,"diff_hunk":"@@ -151,6 +175,17 @@ function expressroutes(router, options) {\n         res.json(options.api);\n     });\n \n+    var routesMethod = {};\n+    routes.forEach(function(route) {","path":"lib/expressroutes.js","position":63,"original_position":63,"commit_id":"6eb1c64d38b1259517b4f44fdd17cd3c91be6a61","original_commit_id":"6eb1c64d38b1259517b4f44fdd17cd3c91be6a61","user":{"login":"mrshoki","id":3489958,"avatar_url":"https://avatars.githubusercontent.com/u/3489958?v=3","gravatar_id":"","url":"https://api.github.com/users/mrshoki","html_url":"https://github.com/mrshoki","followers_url":"https://api.github.com/users/mrshoki/followers","following_url":"https://api.github.com/users/mrshoki/following{/other_user}","gists_url":"https://api.github.com/users/mrshoki/gists{/gist_id}","starred_url":"https://api.github.com/users/mrshoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrshoki/subscriptions","organizations_url":"https://api.github.com/users/mrshoki/orgs","repos_url":"https://api.github.com/users/mrshoki/repos","events_url":"https://api.github.com/users/mrshoki/events{/privacy}","received_events_url":"https://api.github.com/users/mrshoki/received_events","type":"User","site_admin":false},"body":"I would put this into the makeExpressRoutes  to avoid going through the routes list twice.","created_at":"2015-09-23T10:31:11Z","updated_at":"2015-09-23T10:31:11Z","html_url":"https://github.com/worldline/swaggerize-express/pull/3#discussion_r40189280","pull_request_url":"https://api.github.com/repos/worldline/swaggerize-express/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/worldline/swaggerize-express/pulls/comments/40189280"},"html":{"href":"https://github.com/worldline/swaggerize-express/pull/3#discussion_r40189280"},"pull_request":{"href":"https://api.github.com/repos/worldline/swaggerize-express/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/worldline/swaggerize-express/pulls/3","id":45756831,"html_url":"https://github.com/worldline/swaggerize-express/pull/3","diff_url":"https://github.com/worldline/swaggerize-express/pull/3.diff","patch_url":"https://github.com/worldline/swaggerize-express/pull/3.patch","issue_url":"https://api.github.com/repos/worldline/swaggerize-express/issues/3","number":3,"state":"open","locked":false,"title":"Routes : Added HTTP 405 handler middleware","user":{"login":"nbcraft","id":4719911,"avatar_url":"https://avatars.githubusercontent.com/u/4719911?v=3","gravatar_id":"","url":"https://api.github.com/users/nbcraft","html_url":"https://github.com/nbcraft","followers_url":"https://api.github.com/users/nbcraft/followers","following_url":"https://api.github.com/users/nbcraft/following{/other_user}","gists_url":"https://api.github.com/users/nbcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/nbcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbcraft/subscriptions","organizations_url":"https://api.github.com/users/nbcraft/orgs","repos_url":"https://api.github.com/users/nbcraft/repos","events_url":"https://api.github.com/users/nbcraft/events{/privacy}","received_events_url":"https://api.github.com/users/nbcraft/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-23T09:04:33Z","updated_at":"2015-09-23T10:31:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64a994f3314997918e5f2512ffc8e43d6a4dd6d4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/worldline/swaggerize-express/pulls/3/commits","review_comments_url":"https://api.github.com/repos/worldline/swaggerize-express/pulls/3/comments","review_comment_url":"https://api.github.com/repos/worldline/swaggerize-express/pulls/comments{/number}","comments_url":"https://api.github.com/repos/worldline/swaggerize-express/issues/3/comments","statuses_url":"https://api.github.com/repos/worldline/swaggerize-express/statuses/6eb1c64d38b1259517b4f44fdd17cd3c91be6a61","head":{"label":"nbcraft:worldlineMaster","ref":"worldlineMaster","sha":"6eb1c64d38b1259517b4f44fdd17cd3c91be6a61","user":{"login":"nbcraft","id":4719911,"avatar_url":"https://avatars.githubusercontent.com/u/4719911?v=3","gravatar_id":"","url":"https://api.github.com/users/nbcraft","html_url":"https://github.com/nbcraft","followers_url":"https://api.github.com/users/nbcraft/followers","following_url":"https://api.github.com/users/nbcraft/following{/other_user}","gists_url":"https://api.github.com/users/nbcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/nbcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbcraft/subscriptions","organizations_url":"https://api.github.com/users/nbcraft/orgs","repos_url":"https://api.github.com/users/nbcraft/repos","events_url":"https://api.github.com/users/nbcraft/events{/privacy}","received_events_url":"https://api.github.com/users/nbcraft/received_events","type":"User","site_admin":false},"repo":{"id":42662161,"name":"swaggerize-express","full_name":"nbcraft/swaggerize-express","owner":{"login":"nbcraft","id":4719911,"avatar_url":"https://avatars.githubusercontent.com/u/4719911?v=3","gravatar_id":"","url":"https://api.github.com/users/nbcraft","html_url":"https://github.com/nbcraft","followers_url":"https://api.github.com/users/nbcraft/followers","following_url":"https://api.github.com/users/nbcraft/following{/other_user}","gists_url":"https://api.github.com/users/nbcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/nbcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbcraft/subscriptions","organizations_url":"https://api.github.com/users/nbcraft/orgs","repos_url":"https://api.github.com/users/nbcraft/repos","events_url":"https://api.github.com/users/nbcraft/events{/privacy}","received_events_url":"https://api.github.com/users/nbcraft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nbcraft/swaggerize-express","description":"Design-driven apis with swagger 2.0 and express.","fork":true,"url":"https://api.github.com/repos/nbcraft/swaggerize-express","forks_url":"https://api.github.com/repos/nbcraft/swaggerize-express/forks","keys_url":"https://api.github.com/repos/nbcraft/swaggerize-express/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nbcraft/swaggerize-express/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nbcraft/swaggerize-express/teams","hooks_url":"https://api.github.com/repos/nbcraft/swaggerize-express/hooks","issue_events_url":"https://api.github.com/repos/nbcraft/swaggerize-express/issues/events{/number}","events_url":"https://api.github.com/repos/nbcraft/swaggerize-express/events","assignees_url":"https://api.github.com/repos/nbcraft/swaggerize-express/assignees{/user}","branches_url":"https://api.github.com/repos/nbcraft/swaggerize-express/branches{/branch}","tags_url":"https://api.github.com/repos/nbcraft/swaggerize-express/tags","blobs_url":"https://api.github.com/repos/nbcraft/swaggerize-express/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nbcraft/swaggerize-express/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nbcraft/swaggerize-express/git/refs{/sha}","trees_url":"https://api.github.com/repos/nbcraft/swaggerize-express/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nbcraft/swaggerize-express/statuses/{sha}","languages_url":"https://api.github.com/repos/nbcraft/swaggerize-express/languages","stargazers_url":"https://api.github.com/repos/nbcraft/swaggerize-express/stargazers","contributors_url":"https://api.github.com/repos/nbcraft/swaggerize-express/contributors","subscribers_url":"https://api.github.com/repos/nbcraft/swaggerize-express/subscribers","subscription_url":"https://api.github.com/repos/nbcraft/swaggerize-express/subscription","commits_url":"https://api.github.com/repos/nbcraft/swaggerize-express/commits{/sha}","git_commits_url":"https://api.github.com/repos/nbcraft/swaggerize-express/git/commits{/sha}","comments_url":"https://api.github.com/repos/nbcraft/swaggerize-express/comments{/number}","issue_comment_url":"https://api.github.com/repos/nbcraft/swaggerize-express/issues/comments{/number}","contents_url":"https://api.github.com/repos/nbcraft/swaggerize-express/contents/{+path}","compare_url":"https://api.github.com/repos/nbcraft/swaggerize-express/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nbcraft/swaggerize-express/merges","archive_url":"https://api.github.com/repos/nbcraft/swaggerize-express/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nbcraft/swaggerize-express/downloads","issues_url":"https://api.github.com/repos/nbcraft/swaggerize-express/issues{/number}","pulls_url":"https://api.github.com/repos/nbcraft/swaggerize-express/pulls{/number}","milestones_url":"https://api.github.com/repos/nbcraft/swaggerize-express/milestones{/number}","notifications_url":"https://api.github.com/repos/nbcraft/swaggerize-express/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nbcraft/swaggerize-express/labels{/name}","releases_url":"https://api.github.com/repos/nbcraft/swaggerize-express/releases{/id}","created_at":"2015-09-17T14:49:12Z","updated_at":"2015-09-17T14:49:13Z","pushed_at":"2015-09-23T09:03:21Z","git_url":"git://github.com/nbcraft/swaggerize-express.git","ssh_url":"git@github.com:nbcraft/swaggerize-express.git","clone_url":"https://github.com/nbcraft/swaggerize-express.git","svn_url":"https://github.com/nbcraft/swaggerize-express","homepage":"","size":347,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"worldline:worldlineMaster","ref":"worldlineMaster","sha":"60b41975d97becb9e633a4fea183dab17926b73f","user":{"login":"worldline","id":5173767,"avatar_url":"https://avatars.githubusercontent.com/u/5173767?v=3","gravatar_id":"","url":"https://api.github.com/users/worldline","html_url":"https://github.com/worldline","followers_url":"https://api.github.com/users/worldline/followers","following_url":"https://api.github.com/users/worldline/following{/other_user}","gists_url":"https://api.github.com/users/worldline/gists{/gist_id}","starred_url":"https://api.github.com/users/worldline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worldline/subscriptions","organizations_url":"https://api.github.com/users/worldline/orgs","repos_url":"https://api.github.com/users/worldline/repos","events_url":"https://api.github.com/users/worldline/events{/privacy}","received_events_url":"https://api.github.com/users/worldline/received_events","type":"Organization","site_admin":false},"repo":{"id":33995369,"name":"swaggerize-express","full_name":"worldline/swaggerize-express","owner":{"login":"worldline","id":5173767,"avatar_url":"https://avatars.githubusercontent.com/u/5173767?v=3","gravatar_id":"","url":"https://api.github.com/users/worldline","html_url":"https://github.com/worldline","followers_url":"https://api.github.com/users/worldline/followers","following_url":"https://api.github.com/users/worldline/following{/other_user}","gists_url":"https://api.github.com/users/worldline/gists{/gist_id}","starred_url":"https://api.github.com/users/worldline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worldline/subscriptions","organizations_url":"https://api.github.com/users/worldline/orgs","repos_url":"https://api.github.com/users/worldline/repos","events_url":"https://api.github.com/users/worldline/events{/privacy}","received_events_url":"https://api.github.com/users/worldline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/worldline/swaggerize-express","description":"Design-driven apis with swagger 2.0 and express.","fork":true,"url":"https://api.github.com/repos/worldline/swaggerize-express","forks_url":"https://api.github.com/repos/worldline/swaggerize-express/forks","keys_url":"https://api.github.com/repos/worldline/swaggerize-express/keys{/key_id}","collaborators_url":"https://api.github.com/repos/worldline/swaggerize-express/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/worldline/swaggerize-express/teams","hooks_url":"https://api.github.com/repos/worldline/swaggerize-express/hooks","issue_events_url":"https://api.github.com/repos/worldline/swaggerize-express/issues/events{/number}","events_url":"https://api.github.com/repos/worldline/swaggerize-express/events","assignees_url":"https://api.github.com/repos/worldline/swaggerize-express/assignees{/user}","branches_url":"https://api.github.com/repos/worldline/swaggerize-express/branches{/branch}","tags_url":"https://api.github.com/repos/worldline/swaggerize-express/tags","blobs_url":"https://api.github.com/repos/worldline/swaggerize-express/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/worldline/swaggerize-express/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/worldline/swaggerize-express/git/refs{/sha}","trees_url":"https://api.github.com/repos/worldline/swaggerize-express/git/trees{/sha}","statuses_url":"https://api.github.com/repos/worldline/swaggerize-express/statuses/{sha}","languages_url":"https://api.github.com/repos/worldline/swaggerize-express/languages","stargazers_url":"https://api.github.com/repos/worldline/swaggerize-express/stargazers","contributors_url":"https://api.github.com/repos/worldline/swaggerize-express/contributors","subscribers_url":"https://api.github.com/repos/worldline/swaggerize-express/subscribers","subscription_url":"https://api.github.com/repos/worldline/swaggerize-express/subscription","commits_url":"https://api.github.com/repos/worldline/swaggerize-express/commits{/sha}","git_commits_url":"https://api.github.com/repos/worldline/swaggerize-express/git/commits{/sha}","comments_url":"https://api.github.com/repos/worldline/swaggerize-express/comments{/number}","issue_comment_url":"https://api.github.com/repos/worldline/swaggerize-express/issues/comments{/number}","contents_url":"https://api.github.com/repos/worldline/swaggerize-express/contents/{+path}","compare_url":"https://api.github.com/repos/worldline/swaggerize-express/compare/{base}...{head}","merges_url":"https://api.github.com/repos/worldline/swaggerize-express/merges","archive_url":"https://api.github.com/repos/worldline/swaggerize-express/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/worldline/swaggerize-express/downloads","issues_url":"https://api.github.com/repos/worldline/swaggerize-express/issues{/number}","pulls_url":"https://api.github.com/repos/worldline/swaggerize-express/pulls{/number}","milestones_url":"https://api.github.com/repos/worldline/swaggerize-express/milestones{/number}","notifications_url":"https://api.github.com/repos/worldline/swaggerize-express/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/worldline/swaggerize-express/labels{/name}","releases_url":"https://api.github.com/repos/worldline/swaggerize-express/releases{/id}","created_at":"2015-04-15T13:27:48Z","updated_at":"2015-05-26T09:28:46Z","pushed_at":"2015-09-23T09:04:34Z","git_url":"git://github.com/worldline/swaggerize-express.git","ssh_url":"git@github.com:worldline/swaggerize-express.git","clone_url":"https://github.com/worldline/swaggerize-express.git","svn_url":"https://github.com/worldline/swaggerize-express","homepage":"","size":347,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/worldline/swaggerize-express/pulls/3"},"html":{"href":"https://github.com/worldline/swaggerize-express/pull/3"},"issue":{"href":"https://api.github.com/repos/worldline/swaggerize-express/issues/3"},"comments":{"href":"https://api.github.com/repos/worldline/swaggerize-express/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/worldline/swaggerize-express/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/worldline/swaggerize-express/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/worldline/swaggerize-express/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/worldline/swaggerize-express/statuses/6eb1c64d38b1259517b4f44fdd17cd3c91be6a61"}}}}