{"action":"created","comment":{"url":"https://api.github.com/repos/chukitow/chat-node/pulls/comments/23395879","id":23395879,"diff_hunk":"@@ -1,8 +1,13 @@\n+var middleware          = require('./middleware');\n var homeController      = require('../controllers/home_controller');\n \n module.exports = function(app, passport) {\n+  // Middleware actions\n+  app.use('/chat', middleware.ensureAuthenticated);\n \n+  // Routes actions\n   app.get('/', homeController.index);\n+  app.get('/chat', homeController.chat);","path":"config/routes.js","position":10,"original_position":10,"commit_id":"1ca6e3e5df909d127a87c3dd4fe35085da6fa7aa","original_commit_id":"1ca6e3e5df909d127a87c3dd4fe35085da6fa7aa","user":{"login":"chukitow","id":4173376,"avatar_url":"https://avatars.githubusercontent.com/u/4173376?v=3","gravatar_id":"","url":"https://api.github.com/users/chukitow","html_url":"https://github.com/chukitow","followers_url":"https://api.github.com/users/chukitow/followers","following_url":"https://api.github.com/users/chukitow/following{/other_user}","gists_url":"https://api.github.com/users/chukitow/gists{/gist_id}","starred_url":"https://api.github.com/users/chukitow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukitow/subscriptions","organizations_url":"https://api.github.com/users/chukitow/orgs","repos_url":"https://api.github.com/users/chukitow/repos","events_url":"https://api.github.com/users/chukitow/events{/privacy}","received_events_url":"https://api.github.com/users/chukitow/received_events","type":"User","site_admin":false},"body":"Sabes que, tienes toda la verdad :)","created_at":"2015-01-22T18:12:31Z","updated_at":"2015-01-22T18:12:31Z","html_url":"https://github.com/chukitow/chat-node/pull/2#discussion_r23395879","pull_request_url":"https://api.github.com/repos/chukitow/chat-node/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/chukitow/chat-node/pulls/comments/23395879"},"html":{"href":"https://github.com/chukitow/chat-node/pull/2#discussion_r23395879"},"pull_request":{"href":"https://api.github.com/repos/chukitow/chat-node/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/chukitow/chat-node/pulls/2","id":27813531,"html_url":"https://github.com/chukitow/chat-node/pull/2","diff_url":"https://github.com/chukitow/chat-node/pull/2.diff","patch_url":"https://github.com/chukitow/chat-node/pull/2.patch","issue_url":"https://api.github.com/repos/chukitow/chat-node/issues/2","number":2,"state":"open","locked":false,"title":"Featur/middleware restriction","user":{"login":"Subastkar","id":987548,"avatar_url":"https://avatars.githubusercontent.com/u/987548?v=3","gravatar_id":"","url":"https://api.github.com/users/Subastkar","html_url":"https://github.com/Subastkar","followers_url":"https://api.github.com/users/Subastkar/followers","following_url":"https://api.github.com/users/Subastkar/following{/other_user}","gists_url":"https://api.github.com/users/Subastkar/gists{/gist_id}","starred_url":"https://api.github.com/users/Subastkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Subastkar/subscriptions","organizations_url":"https://api.github.com/users/Subastkar/orgs","repos_url":"https://api.github.com/users/Subastkar/repos","events_url":"https://api.github.com/users/Subastkar/events{/privacy}","received_events_url":"https://api.github.com/users/Subastkar/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-22T02:24:43Z","updated_at":"2015-01-22T18:12:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f94e4fd906c2c3e5669e64cd7eff4e5fdb372f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chukitow/chat-node/pulls/2/commits","review_comments_url":"https://api.github.com/repos/chukitow/chat-node/pulls/2/comments","review_comment_url":"https://api.github.com/repos/chukitow/chat-node/pulls/comments/{number}","comments_url":"https://api.github.com/repos/chukitow/chat-node/issues/2/comments","statuses_url":"https://api.github.com/repos/chukitow/chat-node/statuses/1ca6e3e5df909d127a87c3dd4fe35085da6fa7aa","head":{"label":"chukitow:featur/middleware-restriction","ref":"featur/middleware-restriction","sha":"1ca6e3e5df909d127a87c3dd4fe35085da6fa7aa","user":{"login":"chukitow","id":4173376,"avatar_url":"https://avatars.githubusercontent.com/u/4173376?v=3","gravatar_id":"","url":"https://api.github.com/users/chukitow","html_url":"https://github.com/chukitow","followers_url":"https://api.github.com/users/chukitow/followers","following_url":"https://api.github.com/users/chukitow/following{/other_user}","gists_url":"https://api.github.com/users/chukitow/gists{/gist_id}","starred_url":"https://api.github.com/users/chukitow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukitow/subscriptions","organizations_url":"https://api.github.com/users/chukitow/orgs","repos_url":"https://api.github.com/users/chukitow/repos","events_url":"https://api.github.com/users/chukitow/events{/privacy}","received_events_url":"https://api.github.com/users/chukitow/received_events","type":"User","site_admin":false},"repo":{"id":29577651,"name":"chat-node","full_name":"chukitow/chat-node","owner":{"login":"chukitow","id":4173376,"avatar_url":"https://avatars.githubusercontent.com/u/4173376?v=3","gravatar_id":"","url":"https://api.github.com/users/chukitow","html_url":"https://github.com/chukitow","followers_url":"https://api.github.com/users/chukitow/followers","following_url":"https://api.github.com/users/chukitow/following{/other_user}","gists_url":"https://api.github.com/users/chukitow/gists{/gist_id}","starred_url":"https://api.github.com/users/chukitow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukitow/subscriptions","organizations_url":"https://api.github.com/users/chukitow/orgs","repos_url":"https://api.github.com/users/chukitow/repos","events_url":"https://api.github.com/users/chukitow/events{/privacy}","received_events_url":"https://api.github.com/users/chukitow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chukitow/chat-node","description":"","fork":false,"url":"https://api.github.com/repos/chukitow/chat-node","forks_url":"https://api.github.com/repos/chukitow/chat-node/forks","keys_url":"https://api.github.com/repos/chukitow/chat-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chukitow/chat-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chukitow/chat-node/teams","hooks_url":"https://api.github.com/repos/chukitow/chat-node/hooks","issue_events_url":"https://api.github.com/repos/chukitow/chat-node/issues/events{/number}","events_url":"https://api.github.com/repos/chukitow/chat-node/events","assignees_url":"https://api.github.com/repos/chukitow/chat-node/assignees{/user}","branches_url":"https://api.github.com/repos/chukitow/chat-node/branches{/branch}","tags_url":"https://api.github.com/repos/chukitow/chat-node/tags","blobs_url":"https://api.github.com/repos/chukitow/chat-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chukitow/chat-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chukitow/chat-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/chukitow/chat-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chukitow/chat-node/statuses/{sha}","languages_url":"https://api.github.com/repos/chukitow/chat-node/languages","stargazers_url":"https://api.github.com/repos/chukitow/chat-node/stargazers","contributors_url":"https://api.github.com/repos/chukitow/chat-node/contributors","subscribers_url":"https://api.github.com/repos/chukitow/chat-node/subscribers","subscription_url":"https://api.github.com/repos/chukitow/chat-node/subscription","commits_url":"https://api.github.com/repos/chukitow/chat-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/chukitow/chat-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/chukitow/chat-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/chukitow/chat-node/issues/comments/{number}","contents_url":"https://api.github.com/repos/chukitow/chat-node/contents/{+path}","compare_url":"https://api.github.com/repos/chukitow/chat-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chukitow/chat-node/merges","archive_url":"https://api.github.com/repos/chukitow/chat-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chukitow/chat-node/downloads","issues_url":"https://api.github.com/repos/chukitow/chat-node/issues{/number}","pulls_url":"https://api.github.com/repos/chukitow/chat-node/pulls{/number}","milestones_url":"https://api.github.com/repos/chukitow/chat-node/milestones{/number}","notifications_url":"https://api.github.com/repos/chukitow/chat-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chukitow/chat-node/labels{/name}","releases_url":"https://api.github.com/repos/chukitow/chat-node/releases{/id}","created_at":"2015-01-21T07:35:43Z","updated_at":"2015-01-22T02:23:56Z","pushed_at":"2015-01-22T18:04:55Z","git_url":"git://github.com/chukitow/chat-node.git","ssh_url":"git@github.com:chukitow/chat-node.git","clone_url":"https://github.com/chukitow/chat-node.git","svn_url":"https://github.com/chukitow/chat-node","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"chukitow:develop","ref":"develop","sha":"52dffaedaa73693f4c30a0f9fdf82e9b7f659d04","user":{"login":"chukitow","id":4173376,"avatar_url":"https://avatars.githubusercontent.com/u/4173376?v=3","gravatar_id":"","url":"https://api.github.com/users/chukitow","html_url":"https://github.com/chukitow","followers_url":"https://api.github.com/users/chukitow/followers","following_url":"https://api.github.com/users/chukitow/following{/other_user}","gists_url":"https://api.github.com/users/chukitow/gists{/gist_id}","starred_url":"https://api.github.com/users/chukitow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukitow/subscriptions","organizations_url":"https://api.github.com/users/chukitow/orgs","repos_url":"https://api.github.com/users/chukitow/repos","events_url":"https://api.github.com/users/chukitow/events{/privacy}","received_events_url":"https://api.github.com/users/chukitow/received_events","type":"User","site_admin":false},"repo":{"id":29577651,"name":"chat-node","full_name":"chukitow/chat-node","owner":{"login":"chukitow","id":4173376,"avatar_url":"https://avatars.githubusercontent.com/u/4173376?v=3","gravatar_id":"","url":"https://api.github.com/users/chukitow","html_url":"https://github.com/chukitow","followers_url":"https://api.github.com/users/chukitow/followers","following_url":"https://api.github.com/users/chukitow/following{/other_user}","gists_url":"https://api.github.com/users/chukitow/gists{/gist_id}","starred_url":"https://api.github.com/users/chukitow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukitow/subscriptions","organizations_url":"https://api.github.com/users/chukitow/orgs","repos_url":"https://api.github.com/users/chukitow/repos","events_url":"https://api.github.com/users/chukitow/events{/privacy}","received_events_url":"https://api.github.com/users/chukitow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chukitow/chat-node","description":"","fork":false,"url":"https://api.github.com/repos/chukitow/chat-node","forks_url":"https://api.github.com/repos/chukitow/chat-node/forks","keys_url":"https://api.github.com/repos/chukitow/chat-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chukitow/chat-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chukitow/chat-node/teams","hooks_url":"https://api.github.com/repos/chukitow/chat-node/hooks","issue_events_url":"https://api.github.com/repos/chukitow/chat-node/issues/events{/number}","events_url":"https://api.github.com/repos/chukitow/chat-node/events","assignees_url":"https://api.github.com/repos/chukitow/chat-node/assignees{/user}","branches_url":"https://api.github.com/repos/chukitow/chat-node/branches{/branch}","tags_url":"https://api.github.com/repos/chukitow/chat-node/tags","blobs_url":"https://api.github.com/repos/chukitow/chat-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chukitow/chat-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chukitow/chat-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/chukitow/chat-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chukitow/chat-node/statuses/{sha}","languages_url":"https://api.github.com/repos/chukitow/chat-node/languages","stargazers_url":"https://api.github.com/repos/chukitow/chat-node/stargazers","contributors_url":"https://api.github.com/repos/chukitow/chat-node/contributors","subscribers_url":"https://api.github.com/repos/chukitow/chat-node/subscribers","subscription_url":"https://api.github.com/repos/chukitow/chat-node/subscription","commits_url":"https://api.github.com/repos/chukitow/chat-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/chukitow/chat-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/chukitow/chat-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/chukitow/chat-node/issues/comments/{number}","contents_url":"https://api.github.com/repos/chukitow/chat-node/contents/{+path}","compare_url":"https://api.github.com/repos/chukitow/chat-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chukitow/chat-node/merges","archive_url":"https://api.github.com/repos/chukitow/chat-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chukitow/chat-node/downloads","issues_url":"https://api.github.com/repos/chukitow/chat-node/issues{/number}","pulls_url":"https://api.github.com/repos/chukitow/chat-node/pulls{/number}","milestones_url":"https://api.github.com/repos/chukitow/chat-node/milestones{/number}","notifications_url":"https://api.github.com/repos/chukitow/chat-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chukitow/chat-node/labels{/name}","releases_url":"https://api.github.com/repos/chukitow/chat-node/releases{/id}","created_at":"2015-01-21T07:35:43Z","updated_at":"2015-01-22T02:23:56Z","pushed_at":"2015-01-22T18:04:55Z","git_url":"git://github.com/chukitow/chat-node.git","ssh_url":"git@github.com:chukitow/chat-node.git","clone_url":"https://github.com/chukitow/chat-node.git","svn_url":"https://github.com/chukitow/chat-node","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/chukitow/chat-node/pulls/2"},"html":{"href":"https://github.com/chukitow/chat-node/pull/2"},"issue":{"href":"https://api.github.com/repos/chukitow/chat-node/issues/2"},"comments":{"href":"https://api.github.com/repos/chukitow/chat-node/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/chukitow/chat-node/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/chukitow/chat-node/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/chukitow/chat-node/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/chukitow/chat-node/statuses/1ca6e3e5df909d127a87c3dd4fe35085da6fa7aa"}}}}