{"action":"created","comment":{"url":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/comments/75986950","id":75986950,"diff_hunk":"@@ -29,7 +30,7 @@ module.exports = function (app) {\n   });\n \n   // Get a particular claim\n-  app.get('/claims/:extClaimId', function (req, res) {\n+  app.get('/claim/:extClaimId', auth.authenticatedOr404, function (req, res) {","path":"winterfell/controllers/fileClaimController.js","position":41,"original_position":41,"commit_id":"b6a948a553a215a67ecd8f3abb6f1893ddfc7b42","original_commit_id":"b6a948a553a215a67ecd8f3abb6f1893ddfc7b42","user":{"login":"ahsu1230","id":4695528,"avatar_url":"https://avatars.githubusercontent.com/u/4695528?v=3","gravatar_id":"","url":"https://api.github.com/users/ahsu1230","html_url":"https://github.com/ahsu1230","followers_url":"https://api.github.com/users/ahsu1230/followers","following_url":"https://api.github.com/users/ahsu1230/following{/other_user}","gists_url":"https://api.github.com/users/ahsu1230/gists{/gist_id}","starred_url":"https://api.github.com/users/ahsu1230/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahsu1230/subscriptions","organizations_url":"https://api.github.com/users/ahsu1230/orgs","repos_url":"https://api.github.com/users/ahsu1230/repos","events_url":"https://api.github.com/users/ahsu1230/events{/privacy}","received_events_url":"https://api.github.com/users/ahsu1230/received_events","type":"User","site_admin":false},"body":"well what do you think? We can keep it singular `/claim/:claimId`, but we should be consistent across the board.","created_at":"2016-08-24T02:43:44Z","updated_at":"2016-08-24T02:43:44Z","html_url":"https://github.com/bayeshack2016/vetafi/pull/45#discussion_r75986950","pull_request_url":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/comments/75986950"},"html":{"href":"https://github.com/bayeshack2016/vetafi/pull/45#discussion_r75986950"},"pull_request":{"href":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/45","id":81940601,"html_url":"https://github.com/bayeshack2016/vetafi/pull/45","diff_url":"https://github.com/bayeshack2016/vetafi/pull/45.diff","patch_url":"https://github.com/bayeshack2016/vetafi/pull/45.patch","issue_url":"https://api.github.com/repos/bayeshack2016/vetafi/issues/45","number":45,"state":"open","locked":false,"title":"Create Middleware to Verify Authentication","user":{"login":"qwwqwwq","id":4935495,"avatar_url":"https://avatars.githubusercontent.com/u/4935495?v=3","gravatar_id":"","url":"https://api.github.com/users/qwwqwwq","html_url":"https://github.com/qwwqwwq","followers_url":"https://api.github.com/users/qwwqwwq/followers","following_url":"https://api.github.com/users/qwwqwwq/following{/other_user}","gists_url":"https://api.github.com/users/qwwqwwq/gists{/gist_id}","starred_url":"https://api.github.com/users/qwwqwwq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qwwqwwq/subscriptions","organizations_url":"https://api.github.com/users/qwwqwwq/orgs","repos_url":"https://api.github.com/users/qwwqwwq/repos","events_url":"https://api.github.com/users/qwwqwwq/events{/privacy}","received_events_url":"https://api.github.com/users/qwwqwwq/received_events","type":"User","site_admin":false},"body":"- Middleware to check if user is authed, eventually we should use this to replace many one-off places in the code were we try to establish authorization\r\n- Used this middleware within the fileClaim controller\r\n- Updated & simplified fileClaimController tests","created_at":"2016-08-19T07:57:37Z","updated_at":"2016-08-24T02:43:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27c704c86528a3ddb607aa4f0b2e91abb6db2120","assignee":{"login":"ahsu1230","id":4695528,"avatar_url":"https://avatars.githubusercontent.com/u/4695528?v=3","gravatar_id":"","url":"https://api.github.com/users/ahsu1230","html_url":"https://github.com/ahsu1230","followers_url":"https://api.github.com/users/ahsu1230/followers","following_url":"https://api.github.com/users/ahsu1230/following{/other_user}","gists_url":"https://api.github.com/users/ahsu1230/gists{/gist_id}","starred_url":"https://api.github.com/users/ahsu1230/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahsu1230/subscriptions","organizations_url":"https://api.github.com/users/ahsu1230/orgs","repos_url":"https://api.github.com/users/ahsu1230/repos","events_url":"https://api.github.com/users/ahsu1230/events{/privacy}","received_events_url":"https://api.github.com/users/ahsu1230/received_events","type":"User","site_admin":false},"assignees":[{"login":"ahsu1230","id":4695528,"avatar_url":"https://avatars.githubusercontent.com/u/4695528?v=3","gravatar_id":"","url":"https://api.github.com/users/ahsu1230","html_url":"https://github.com/ahsu1230","followers_url":"https://api.github.com/users/ahsu1230/followers","following_url":"https://api.github.com/users/ahsu1230/following{/other_user}","gists_url":"https://api.github.com/users/ahsu1230/gists{/gist_id}","starred_url":"https://api.github.com/users/ahsu1230/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahsu1230/subscriptions","organizations_url":"https://api.github.com/users/ahsu1230/orgs","repos_url":"https://api.github.com/users/ahsu1230/repos","events_url":"https://api.github.com/users/ahsu1230/events{/privacy}","received_events_url":"https://api.github.com/users/ahsu1230/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/45/commits","review_comments_url":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/45/comments","review_comment_url":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bayeshack2016/vetafi/issues/45/comments","statuses_url":"https://api.github.com/repos/bayeshack2016/vetafi/statuses/b6a948a553a215a67ecd8f3abb6f1893ddfc7b42","head":{"label":"bayeshack2016:jq_use_auth_middleware","ref":"jq_use_auth_middleware","sha":"b6a948a553a215a67ecd8f3abb6f1893ddfc7b42","user":{"login":"bayeshack2016","id":17835477,"avatar_url":"https://avatars.githubusercontent.com/u/17835477?v=3","gravatar_id":"","url":"https://api.github.com/users/bayeshack2016","html_url":"https://github.com/bayeshack2016","followers_url":"https://api.github.com/users/bayeshack2016/followers","following_url":"https://api.github.com/users/bayeshack2016/following{/other_user}","gists_url":"https://api.github.com/users/bayeshack2016/gists{/gist_id}","starred_url":"https://api.github.com/users/bayeshack2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayeshack2016/subscriptions","organizations_url":"https://api.github.com/users/bayeshack2016/orgs","repos_url":"https://api.github.com/users/bayeshack2016/repos","events_url":"https://api.github.com/users/bayeshack2016/events{/privacy}","received_events_url":"https://api.github.com/users/bayeshack2016/received_events","type":"Organization","site_admin":false},"repo":{"id":56980135,"name":"vetafi","full_name":"bayeshack2016/vetafi","owner":{"login":"bayeshack2016","id":17835477,"avatar_url":"https://avatars.githubusercontent.com/u/17835477?v=3","gravatar_id":"","url":"https://api.github.com/users/bayeshack2016","html_url":"https://github.com/bayeshack2016","followers_url":"https://api.github.com/users/bayeshack2016/followers","following_url":"https://api.github.com/users/bayeshack2016/following{/other_user}","gists_url":"https://api.github.com/users/bayeshack2016/gists{/gist_id}","starred_url":"https://api.github.com/users/bayeshack2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayeshack2016/subscriptions","organizations_url":"https://api.github.com/users/bayeshack2016/orgs","repos_url":"https://api.github.com/users/bayeshack2016/repos","events_url":"https://api.github.com/users/bayeshack2016/events{/privacy}","received_events_url":"https://api.github.com/users/bayeshack2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bayeshack2016/vetafi","description":"#VA","fork":false,"url":"https://api.github.com/repos/bayeshack2016/vetafi","forks_url":"https://api.github.com/repos/bayeshack2016/vetafi/forks","keys_url":"https://api.github.com/repos/bayeshack2016/vetafi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bayeshack2016/vetafi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bayeshack2016/vetafi/teams","hooks_url":"https://api.github.com/repos/bayeshack2016/vetafi/hooks","issue_events_url":"https://api.github.com/repos/bayeshack2016/vetafi/issues/events{/number}","events_url":"https://api.github.com/repos/bayeshack2016/vetafi/events","assignees_url":"https://api.github.com/repos/bayeshack2016/vetafi/assignees{/user}","branches_url":"https://api.github.com/repos/bayeshack2016/vetafi/branches{/branch}","tags_url":"https://api.github.com/repos/bayeshack2016/vetafi/tags","blobs_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/refs{/sha}","trees_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bayeshack2016/vetafi/statuses/{sha}","languages_url":"https://api.github.com/repos/bayeshack2016/vetafi/languages","stargazers_url":"https://api.github.com/repos/bayeshack2016/vetafi/stargazers","contributors_url":"https://api.github.com/repos/bayeshack2016/vetafi/contributors","subscribers_url":"https://api.github.com/repos/bayeshack2016/vetafi/subscribers","subscription_url":"https://api.github.com/repos/bayeshack2016/vetafi/subscription","commits_url":"https://api.github.com/repos/bayeshack2016/vetafi/commits{/sha}","git_commits_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/commits{/sha}","comments_url":"https://api.github.com/repos/bayeshack2016/vetafi/comments{/number}","issue_comment_url":"https://api.github.com/repos/bayeshack2016/vetafi/issues/comments{/number}","contents_url":"https://api.github.com/repos/bayeshack2016/vetafi/contents/{+path}","compare_url":"https://api.github.com/repos/bayeshack2016/vetafi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bayeshack2016/vetafi/merges","archive_url":"https://api.github.com/repos/bayeshack2016/vetafi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bayeshack2016/vetafi/downloads","issues_url":"https://api.github.com/repos/bayeshack2016/vetafi/issues{/number}","pulls_url":"https://api.github.com/repos/bayeshack2016/vetafi/pulls{/number}","milestones_url":"https://api.github.com/repos/bayeshack2016/vetafi/milestones{/number}","notifications_url":"https://api.github.com/repos/bayeshack2016/vetafi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bayeshack2016/vetafi/labels{/name}","releases_url":"https://api.github.com/repos/bayeshack2016/vetafi/releases{/id}","deployments_url":"https://api.github.com/repos/bayeshack2016/vetafi/deployments","created_at":"2016-04-24T15:50:04Z","updated_at":"2016-07-18T05:03:59Z","pushed_at":"2016-08-24T02:32:58Z","git_url":"git://github.com/bayeshack2016/vetafi.git","ssh_url":"git@github.com:bayeshack2016/vetafi.git","clone_url":"https://github.com/bayeshack2016/vetafi.git","svn_url":"https://github.com/bayeshack2016/vetafi","homepage":null,"size":30929,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"bayeshack2016:master","ref":"master","sha":"1776e108664154ac5ed9c02f8726774bf154f9c9","user":{"login":"bayeshack2016","id":17835477,"avatar_url":"https://avatars.githubusercontent.com/u/17835477?v=3","gravatar_id":"","url":"https://api.github.com/users/bayeshack2016","html_url":"https://github.com/bayeshack2016","followers_url":"https://api.github.com/users/bayeshack2016/followers","following_url":"https://api.github.com/users/bayeshack2016/following{/other_user}","gists_url":"https://api.github.com/users/bayeshack2016/gists{/gist_id}","starred_url":"https://api.github.com/users/bayeshack2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayeshack2016/subscriptions","organizations_url":"https://api.github.com/users/bayeshack2016/orgs","repos_url":"https://api.github.com/users/bayeshack2016/repos","events_url":"https://api.github.com/users/bayeshack2016/events{/privacy}","received_events_url":"https://api.github.com/users/bayeshack2016/received_events","type":"Organization","site_admin":false},"repo":{"id":56980135,"name":"vetafi","full_name":"bayeshack2016/vetafi","owner":{"login":"bayeshack2016","id":17835477,"avatar_url":"https://avatars.githubusercontent.com/u/17835477?v=3","gravatar_id":"","url":"https://api.github.com/users/bayeshack2016","html_url":"https://github.com/bayeshack2016","followers_url":"https://api.github.com/users/bayeshack2016/followers","following_url":"https://api.github.com/users/bayeshack2016/following{/other_user}","gists_url":"https://api.github.com/users/bayeshack2016/gists{/gist_id}","starred_url":"https://api.github.com/users/bayeshack2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayeshack2016/subscriptions","organizations_url":"https://api.github.com/users/bayeshack2016/orgs","repos_url":"https://api.github.com/users/bayeshack2016/repos","events_url":"https://api.github.com/users/bayeshack2016/events{/privacy}","received_events_url":"https://api.github.com/users/bayeshack2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bayeshack2016/vetafi","description":"#VA","fork":false,"url":"https://api.github.com/repos/bayeshack2016/vetafi","forks_url":"https://api.github.com/repos/bayeshack2016/vetafi/forks","keys_url":"https://api.github.com/repos/bayeshack2016/vetafi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bayeshack2016/vetafi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bayeshack2016/vetafi/teams","hooks_url":"https://api.github.com/repos/bayeshack2016/vetafi/hooks","issue_events_url":"https://api.github.com/repos/bayeshack2016/vetafi/issues/events{/number}","events_url":"https://api.github.com/repos/bayeshack2016/vetafi/events","assignees_url":"https://api.github.com/repos/bayeshack2016/vetafi/assignees{/user}","branches_url":"https://api.github.com/repos/bayeshack2016/vetafi/branches{/branch}","tags_url":"https://api.github.com/repos/bayeshack2016/vetafi/tags","blobs_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/refs{/sha}","trees_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bayeshack2016/vetafi/statuses/{sha}","languages_url":"https://api.github.com/repos/bayeshack2016/vetafi/languages","stargazers_url":"https://api.github.com/repos/bayeshack2016/vetafi/stargazers","contributors_url":"https://api.github.com/repos/bayeshack2016/vetafi/contributors","subscribers_url":"https://api.github.com/repos/bayeshack2016/vetafi/subscribers","subscription_url":"https://api.github.com/repos/bayeshack2016/vetafi/subscription","commits_url":"https://api.github.com/repos/bayeshack2016/vetafi/commits{/sha}","git_commits_url":"https://api.github.com/repos/bayeshack2016/vetafi/git/commits{/sha}","comments_url":"https://api.github.com/repos/bayeshack2016/vetafi/comments{/number}","issue_comment_url":"https://api.github.com/repos/bayeshack2016/vetafi/issues/comments{/number}","contents_url":"https://api.github.com/repos/bayeshack2016/vetafi/contents/{+path}","compare_url":"https://api.github.com/repos/bayeshack2016/vetafi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bayeshack2016/vetafi/merges","archive_url":"https://api.github.com/repos/bayeshack2016/vetafi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bayeshack2016/vetafi/downloads","issues_url":"https://api.github.com/repos/bayeshack2016/vetafi/issues{/number}","pulls_url":"https://api.github.com/repos/bayeshack2016/vetafi/pulls{/number}","milestones_url":"https://api.github.com/repos/bayeshack2016/vetafi/milestones{/number}","notifications_url":"https://api.github.com/repos/bayeshack2016/vetafi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bayeshack2016/vetafi/labels{/name}","releases_url":"https://api.github.com/repos/bayeshack2016/vetafi/releases{/id}","deployments_url":"https://api.github.com/repos/bayeshack2016/vetafi/deployments","created_at":"2016-04-24T15:50:04Z","updated_at":"2016-07-18T05:03:59Z","pushed_at":"2016-08-24T02:32:58Z","git_url":"git://github.com/bayeshack2016/vetafi.git","ssh_url":"git@github.com:bayeshack2016/vetafi.git","clone_url":"https://github.com/bayeshack2016/vetafi.git","svn_url":"https://github.com/bayeshack2016/vetafi","homepage":null,"size":30929,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/45"},"html":{"href":"https://github.com/bayeshack2016/vetafi/pull/45"},"issue":{"href":"https://api.github.com/repos/bayeshack2016/vetafi/issues/45"},"comments":{"href":"https://api.github.com/repos/bayeshack2016/vetafi/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bayeshack2016/vetafi/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/bayeshack2016/vetafi/statuses/b6a948a553a215a67ecd8f3abb6f1893ddfc7b42"}}}}
{"actor":{"display_login":"ahsu1230"}}