{"action":"created","comment":{"url":"https://api.github.com/repos/meteorhacks/flow-router/pulls/comments/27638118","id":27638118,"diff_hunk":"@@ -36,12 +37,20 @@ Router.prototype.route = function(path, options) {\n   };\n \n   this._routes.push(route);\n+  if (options.name) {\n+    this._pathsMap[options.name] = path;","path":"client/router.js","position":13,"original_position":13,"commit_id":"519f6e011dca72ee95fb90e9dff0fc5b43347d6f","original_commit_id":"519f6e011dca72ee95fb90e9dff0fc5b43347d6f","user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"body":"We need to when handling middlewares. When using `except` and `only` kind of hooks. So, I prefer to layout the foundation. No need to change name related code later on.","created_at":"2015-04-02T07:53:26Z","updated_at":"2015-04-02T07:53:26Z","html_url":"https://github.com/meteorhacks/flow-router/pull/62#discussion_r27638118","pull_request_url":"https://api.github.com/repos/meteorhacks/flow-router/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/meteorhacks/flow-router/pulls/comments/27638118"},"html":{"href":"https://github.com/meteorhacks/flow-router/pull/62#discussion_r27638118"},"pull_request":{"href":"https://api.github.com/repos/meteorhacks/flow-router/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/meteorhacks/flow-router/pulls/62","id":32487748,"html_url":"https://github.com/meteorhacks/flow-router/pull/62","diff_url":"https://github.com/meteorhacks/flow-router/pull/62.diff","patch_url":"https://github.com/meteorhacks/flow-router/pull/62.patch","issue_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/62","number":62,"state":"open","locked":false,"title":"[WIP] Route naming.","user":{"login":"delgermurun","id":492616,"avatar_url":"https://avatars.githubusercontent.com/u/492616?v=3","gravatar_id":"","url":"https://api.github.com/users/delgermurun","html_url":"https://github.com/delgermurun","followers_url":"https://api.github.com/users/delgermurun/followers","following_url":"https://api.github.com/users/delgermurun/following{/other_user}","gists_url":"https://api.github.com/users/delgermurun/gists{/gist_id}","starred_url":"https://api.github.com/users/delgermurun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delgermurun/subscriptions","organizations_url":"https://api.github.com/users/delgermurun/orgs","repos_url":"https://api.github.com/users/delgermurun/repos","events_url":"https://api.github.com/users/delgermurun/events{/privacy}","received_events_url":"https://api.github.com/users/delgermurun/received_events","type":"User","site_admin":false},"body":"I think it is just what we need for now.","created_at":"2015-04-02T07:11:05Z","updated_at":"2015-04-02T07:53:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e440d01b124999c39f1c876ac4ec3d3c676efe7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/meteorhacks/flow-router/pulls/62/commits","review_comments_url":"https://api.github.com/repos/meteorhacks/flow-router/pulls/62/comments","review_comment_url":"https://api.github.com/repos/meteorhacks/flow-router/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/62/comments","statuses_url":"https://api.github.com/repos/meteorhacks/flow-router/statuses/519f6e011dca72ee95fb90e9dff0fc5b43347d6f","head":{"label":"delgermurun:named-routes","ref":"named-routes","sha":"519f6e011dca72ee95fb90e9dff0fc5b43347d6f","user":{"login":"delgermurun","id":492616,"avatar_url":"https://avatars.githubusercontent.com/u/492616?v=3","gravatar_id":"","url":"https://api.github.com/users/delgermurun","html_url":"https://github.com/delgermurun","followers_url":"https://api.github.com/users/delgermurun/followers","following_url":"https://api.github.com/users/delgermurun/following{/other_user}","gists_url":"https://api.github.com/users/delgermurun/gists{/gist_id}","starred_url":"https://api.github.com/users/delgermurun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delgermurun/subscriptions","organizations_url":"https://api.github.com/users/delgermurun/orgs","repos_url":"https://api.github.com/users/delgermurun/repos","events_url":"https://api.github.com/users/delgermurun/events{/privacy}","received_events_url":"https://api.github.com/users/delgermurun/received_events","type":"User","site_admin":false},"repo":{"id":31698991,"name":"flow-router","full_name":"delgermurun/flow-router","owner":{"login":"delgermurun","id":492616,"avatar_url":"https://avatars.githubusercontent.com/u/492616?v=3","gravatar_id":"","url":"https://api.github.com/users/delgermurun","html_url":"https://github.com/delgermurun","followers_url":"https://api.github.com/users/delgermurun/followers","following_url":"https://api.github.com/users/delgermurun/following{/other_user}","gists_url":"https://api.github.com/users/delgermurun/gists{/gist_id}","starred_url":"https://api.github.com/users/delgermurun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delgermurun/subscriptions","organizations_url":"https://api.github.com/users/delgermurun/orgs","repos_url":"https://api.github.com/users/delgermurun/repos","events_url":"https://api.github.com/users/delgermurun/events{/privacy}","received_events_url":"https://api.github.com/users/delgermurun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/delgermurun/flow-router","description":"Carefully Designed Client Side Router for Meteor","fork":true,"url":"https://api.github.com/repos/delgermurun/flow-router","forks_url":"https://api.github.com/repos/delgermurun/flow-router/forks","keys_url":"https://api.github.com/repos/delgermurun/flow-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/delgermurun/flow-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/delgermurun/flow-router/teams","hooks_url":"https://api.github.com/repos/delgermurun/flow-router/hooks","issue_events_url":"https://api.github.com/repos/delgermurun/flow-router/issues/events{/number}","events_url":"https://api.github.com/repos/delgermurun/flow-router/events","assignees_url":"https://api.github.com/repos/delgermurun/flow-router/assignees{/user}","branches_url":"https://api.github.com/repos/delgermurun/flow-router/branches{/branch}","tags_url":"https://api.github.com/repos/delgermurun/flow-router/tags","blobs_url":"https://api.github.com/repos/delgermurun/flow-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/delgermurun/flow-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/delgermurun/flow-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/delgermurun/flow-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/delgermurun/flow-router/statuses/{sha}","languages_url":"https://api.github.com/repos/delgermurun/flow-router/languages","stargazers_url":"https://api.github.com/repos/delgermurun/flow-router/stargazers","contributors_url":"https://api.github.com/repos/delgermurun/flow-router/contributors","subscribers_url":"https://api.github.com/repos/delgermurun/flow-router/subscribers","subscription_url":"https://api.github.com/repos/delgermurun/flow-router/subscription","commits_url":"https://api.github.com/repos/delgermurun/flow-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/delgermurun/flow-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/delgermurun/flow-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/delgermurun/flow-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/delgermurun/flow-router/contents/{+path}","compare_url":"https://api.github.com/repos/delgermurun/flow-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/delgermurun/flow-router/merges","archive_url":"https://api.github.com/repos/delgermurun/flow-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/delgermurun/flow-router/downloads","issues_url":"https://api.github.com/repos/delgermurun/flow-router/issues{/number}","pulls_url":"https://api.github.com/repos/delgermurun/flow-router/pulls{/number}","milestones_url":"https://api.github.com/repos/delgermurun/flow-router/milestones{/number}","notifications_url":"https://api.github.com/repos/delgermurun/flow-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/delgermurun/flow-router/labels{/name}","releases_url":"https://api.github.com/repos/delgermurun/flow-router/releases{/id}","created_at":"2015-03-05T06:17:20Z","updated_at":"2015-04-02T05:42:48Z","pushed_at":"2015-04-02T07:08:30Z","git_url":"git://github.com/delgermurun/flow-router.git","ssh_url":"git@github.com:delgermurun/flow-router.git","clone_url":"https://github.com/delgermurun/flow-router.git","svn_url":"https://github.com/delgermurun/flow-router","homepage":"","size":187,"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":"meteorhacks:named-routes","ref":"named-routes","sha":"27b59533f8cad249e96eb3bdf9bb6a2e8775e730","user":{"login":"meteorhacks","id":4592287,"avatar_url":"https://avatars.githubusercontent.com/u/4592287?v=3","gravatar_id":"","url":"https://api.github.com/users/meteorhacks","html_url":"https://github.com/meteorhacks","followers_url":"https://api.github.com/users/meteorhacks/followers","following_url":"https://api.github.com/users/meteorhacks/following{/other_user}","gists_url":"https://api.github.com/users/meteorhacks/gists{/gist_id}","starred_url":"https://api.github.com/users/meteorhacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteorhacks/subscriptions","organizations_url":"https://api.github.com/users/meteorhacks/orgs","repos_url":"https://api.github.com/users/meteorhacks/repos","events_url":"https://api.github.com/users/meteorhacks/events{/privacy}","received_events_url":"https://api.github.com/users/meteorhacks/received_events","type":"Organization","site_admin":false},"repo":{"id":27758092,"name":"flow-router","full_name":"meteorhacks/flow-router","owner":{"login":"meteorhacks","id":4592287,"avatar_url":"https://avatars.githubusercontent.com/u/4592287?v=3","gravatar_id":"","url":"https://api.github.com/users/meteorhacks","html_url":"https://github.com/meteorhacks","followers_url":"https://api.github.com/users/meteorhacks/followers","following_url":"https://api.github.com/users/meteorhacks/following{/other_user}","gists_url":"https://api.github.com/users/meteorhacks/gists{/gist_id}","starred_url":"https://api.github.com/users/meteorhacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteorhacks/subscriptions","organizations_url":"https://api.github.com/users/meteorhacks/orgs","repos_url":"https://api.github.com/users/meteorhacks/repos","events_url":"https://api.github.com/users/meteorhacks/events{/privacy}","received_events_url":"https://api.github.com/users/meteorhacks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meteorhacks/flow-router","description":"Carefully Designed Client Side Router for Meteor","fork":false,"url":"https://api.github.com/repos/meteorhacks/flow-router","forks_url":"https://api.github.com/repos/meteorhacks/flow-router/forks","keys_url":"https://api.github.com/repos/meteorhacks/flow-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meteorhacks/flow-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meteorhacks/flow-router/teams","hooks_url":"https://api.github.com/repos/meteorhacks/flow-router/hooks","issue_events_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/events{/number}","events_url":"https://api.github.com/repos/meteorhacks/flow-router/events","assignees_url":"https://api.github.com/repos/meteorhacks/flow-router/assignees{/user}","branches_url":"https://api.github.com/repos/meteorhacks/flow-router/branches{/branch}","tags_url":"https://api.github.com/repos/meteorhacks/flow-router/tags","blobs_url":"https://api.github.com/repos/meteorhacks/flow-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meteorhacks/flow-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meteorhacks/flow-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/meteorhacks/flow-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meteorhacks/flow-router/statuses/{sha}","languages_url":"https://api.github.com/repos/meteorhacks/flow-router/languages","stargazers_url":"https://api.github.com/repos/meteorhacks/flow-router/stargazers","contributors_url":"https://api.github.com/repos/meteorhacks/flow-router/contributors","subscribers_url":"https://api.github.com/repos/meteorhacks/flow-router/subscribers","subscription_url":"https://api.github.com/repos/meteorhacks/flow-router/subscription","commits_url":"https://api.github.com/repos/meteorhacks/flow-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/meteorhacks/flow-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/meteorhacks/flow-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/meteorhacks/flow-router/contents/{+path}","compare_url":"https://api.github.com/repos/meteorhacks/flow-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meteorhacks/flow-router/merges","archive_url":"https://api.github.com/repos/meteorhacks/flow-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meteorhacks/flow-router/downloads","issues_url":"https://api.github.com/repos/meteorhacks/flow-router/issues{/number}","pulls_url":"https://api.github.com/repos/meteorhacks/flow-router/pulls{/number}","milestones_url":"https://api.github.com/repos/meteorhacks/flow-router/milestones{/number}","notifications_url":"https://api.github.com/repos/meteorhacks/flow-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meteorhacks/flow-router/labels{/name}","releases_url":"https://api.github.com/repos/meteorhacks/flow-router/releases{/id}","created_at":"2014-12-09T09:01:50Z","updated_at":"2015-04-02T06:19:53Z","pushed_at":"2015-04-02T07:11:06Z","git_url":"git://github.com/meteorhacks/flow-router.git","ssh_url":"git@github.com:meteorhacks/flow-router.git","clone_url":"https://github.com/meteorhacks/flow-router.git","svn_url":"https://github.com/meteorhacks/flow-router","homepage":"","size":551,"stargazers_count":74,"watchers_count":74,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":11,"forks":7,"open_issues":11,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meteorhacks/flow-router/pulls/62"},"html":{"href":"https://github.com/meteorhacks/flow-router/pull/62"},"issue":{"href":"https://api.github.com/repos/meteorhacks/flow-router/issues/62"},"comments":{"href":"https://api.github.com/repos/meteorhacks/flow-router/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/meteorhacks/flow-router/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/meteorhacks/flow-router/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meteorhacks/flow-router/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/meteorhacks/flow-router/statuses/519f6e011dca72ee95fb90e9dff0fc5b43347d6f"}}}}