payload: {"action":"opened","number":43,"pull_request":{"url":"https://api.github.com/repos/olamilekan000/Politico/pulls/43","id":251239310,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUxMjM5MzEw","html_url":"https://github.com/olamilekan000/Politico/pull/43","diff_url":"https://github.com/olamilekan000/Politico/pull/43.diff","patch_url":"https://github.com/olamilekan000/Politico/pull/43.patch","issue_url":"https://api.github.com/repos/olamilekan000/Politico/issues/43","number":43,"state":"open","locked":false,"title":"Ft #163714469 user can vote for a specific candidate","user":{"login":"olamilekan000","id":24735571,"node_id":"MDQ6VXNlcjI0NzM1NTcx","avatar_url":"https://avatars2.githubusercontent.com/u/24735571?v=4","gravatar_id":"","url":"https://api.github.com/users/olamilekan000","html_url":"https://github.com/olamilekan000","followers_url":"https://api.github.com/users/olamilekan000/followers","following_url":"https://api.github.com/users/olamilekan000/following{/other_user}","gists_url":"https://api.github.com/users/olamilekan000/gists{/gist_id}","starred_url":"https://api.github.com/users/olamilekan000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olamilekan000/subscriptions","organizations_url":"https://api.github.com/users/olamilekan000/orgs","repos_url":"https://api.github.com/users/olamilekan000/repos","events_url":"https://api.github.com/users/olamilekan000/events{/privacy}","received_events_url":"https://api.github.com/users/olamilekan000/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nIt allows a user to vote for his/her candidate of choice\r\n\r\n#### Description of Task to be completed?\r\n* create a protected route\r\n* make sure it is only authorized users that can vote.\r\n\r\n#### How should this be manually tested?\r\n* Git clone ` ft-user-can-vote-163714469`\r\n* cd into the directory\r\n* `npm i` to open all dependencies.\r\n* open postman\r\n* send a request with the following data\r\n  POST `localhost:8089/api/v1/votes`{\r\n\t\"office\": 1028,\r\n\t\"candidate\": 5054\r\n}\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n* A user can vote for his/her candidate of choice\r\n* https://www.pivotaltracker.com/story/show/163714469","created_at":"2019-02-07T19:28:10Z","updated_at":"2019-02-07T19:28:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/olamilekan000/Politico/pulls/43/commits","review_comments_url":"https://api.github.com/repos/olamilekan000/Politico/pulls/43/comments","review_comment_url":"https://api.github.com/repos/olamilekan000/Politico/pulls/comments{/number}","comments_url":"https://api.github.com/repos/olamilekan000/Politico/issues/43/comments","statuses_url":"https://api.github.com/repos/olamilekan000/Politico/statuses/22c5f0857a3f62f828583903e35ffa98d7e67773","head":{"label":"olamilekan000:ft-user-can-vote-163714469","ref":"ft-user-can-vote-163714469","sha":"22c5f0857a3f62f828583903e35ffa98d7e67773","user":{"login":"olamilekan000","id":24735571,"node_id":"MDQ6VXNlcjI0NzM1NTcx","avatar_url":"https://avatars2.githubusercontent.com/u/24735571?v=4","gravatar_id":"","url":"https://api.github.com/users/olamilekan000","html_url":"https://github.com/olamilekan000","followers_url":"https://api.github.com/users/olamilekan000/followers","following_url":"https://api.github.com/users/olamilekan000/following{/other_user}","gists_url":"https://api.github.com/users/olamilekan000/gists{/gist_id}","starred_url":"https://api.github.com/users/olamilekan000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olamilekan000/subscriptions","organizations_url":"https://api.github.com/users/olamilekan000/orgs","repos_url":"https://api.github.com/users/olamilekan000/repos","events_url":"https://api.github.com/users/olamilekan000/events{/privacy}","received_events_url":"https://api.github.com/users/olamilekan000/received_events","type":"User","site_admin":false},"repo":{"id":166985231,"node_id":"MDEwOlJlcG9zaXRvcnkxNjY5ODUyMzE=","name":"Politico","full_name":"olamilekan000/Politico","private":false,"owner":{"login":"olamilekan000","id":24735571,"node_id":"MDQ6VXNlcjI0NzM1NTcx","avatar_url":"https://avatars2.githubusercontent.com/u/24735571?v=4","gravatar_id":"","url":"https://api.github.com/users/olamilekan000","html_url":"https://github.com/olamilekan000","followers_url":"https://api.github.com/users/olamilekan000/followers","following_url":"https://api.github.com/users/olamilekan000/following{/other_user}","gists_url":"https://api.github.com/users/olamilekan000/gists{/gist_id}","starred_url":"https://api.github.com/users/olamilekan000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olamilekan000/subscriptions","organizations_url":"https://api.github.com/users/olamilekan000/orgs","repos_url":"https://api.github.com/users/olamilekan000/repos","events_url":"https://api.github.com/users/olamilekan000/events{/privacy}","received_events_url":"https://api.github.com/users/olamilekan000/received_events","type":"User","site_admin":false},"html_url":"https://github.com/olamilekan000/Politico","description":"A political web portal","fork":false,"url":"https://api.github.com/repos/olamilekan000/Politico","forks_url":"https://api.github.com/repos/olamilekan000/Politico/forks","keys_url":"https://api.github.com/repos/olamilekan000/Politico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olamilekan000/Politico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olamilekan000/Politico/teams","hooks_url":"https://api.github.com/repos/olamilekan000/Politico/hooks","issue_events_url":"https://api.github.com/repos/olamilekan000/Politico/issues/events{/number}","events_url":"https://api.github.com/repos/olamilekan000/Politico/events","assignees_url":"https://api.github.com/repos/olamilekan000/Politico/assignees{/user}","branches_url":"https://api.github.com/repos/olamilekan000/Politico/branches{/branch}","tags_url":"https://api.github.com/repos/olamilekan000/Politico/tags","blobs_url":"https://api.github.com/repos/olamilekan000/Politico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olamilekan000/Politico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olamilekan000/Politico/git/refs{/sha}","trees_url":"https://api.github.com/repos/olamilekan000/Politico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olamilekan000/Politico/statuses/{sha}","languages_url":"https://api.github.com/repos/olamilekan000/Politico/languages","stargazers_url":"https://api.github.com/repos/olamilekan000/Politico/stargazers","contributors_url":"https://api.github.com/repos/olamilekan000/Politico/contributors","subscribers_url":"https://api.github.com/repos/olamilekan000/Politico/subscribers","subscription_url":"https://api.github.com/repos/olamilekan000/Politico/subscription","commits_url":"https://api.github.com/repos/olamilekan000/Politico/commits{/sha}","git_commits_url":"https://api.github.com/repos/olamilekan000/Politico/git/commits{/sha}","comments_url":"https://api.github.com/repos/olamilekan000/Politico/comments{/number}","issue_comment_url":"https://api.github.com/repos/olamilekan000/Politico/issues/comments{/number}","contents_url":"https://api.github.com/repos/olamilekan000/Politico/contents/{+path}","compare_url":"https://api.github.com/repos/olamilekan000/Politico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olamilekan000/Politico/merges","archive_url":"https://api.github.com/repos/olamilekan000/Politico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olamilekan000/Politico/downloads","issues_url":"https://api.github.com/repos/olamilekan000/Politico/issues{/number}","pulls_url":"https://api.github.com/repos/olamilekan000/Politico/pulls{/number}","milestones_url":"https://api.github.com/repos/olamilekan000/Politico/milestones{/number}","notifications_url":"https://api.github.com/repos/olamilekan000/Politico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olamilekan000/Politico/labels{/name}","releases_url":"https://api.github.com/repos/olamilekan000/Politico/releases{/id}","deployments_url":"https://api.github.com/repos/olamilekan000/Politico/deployments","created_at":"2019-01-22T11:50:51Z","updated_at":"2019-02-06T16:22:45Z","pushed_at":"2019-02-07T19:19:25Z","git_url":"git://github.com/olamilekan000/Politico.git","ssh_url":"git@github.com:olamilekan000/Politico.git","clone_url":"https://github.com/olamilekan000/Politico.git","svn_url":"https://github.com/olamilekan000/Politico","homepage":"https://olamilekan000.github.io/Politico/UI/public","size":196,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"olamilekan000:develop","ref":"develop","sha":"1354347f7f8cc1823b3b3ad7b1ca77d6bc52c44d","user":{"login":"olamilekan000","id":24735571,"node_id":"MDQ6VXNlcjI0NzM1NTcx","avatar_url":"https://avatars2.githubusercontent.com/u/24735571?v=4","gravatar_id":"","url":"https://api.github.com/users/olamilekan000","html_url":"https://github.com/olamilekan000","followers_url":"https://api.github.com/users/olamilekan000/followers","following_url":"https://api.github.com/users/olamilekan000/following{/other_user}","gists_url":"https://api.github.com/users/olamilekan000/gists{/gist_id}","starred_url":"https://api.github.com/users/olamilekan000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olamilekan000/subscriptions","organizations_url":"https://api.github.com/users/olamilekan000/orgs","repos_url":"https://api.github.com/users/olamilekan000/repos","events_url":"https://api.github.com/users/olamilekan000/events{/privacy}","received_events_url":"https://api.github.com/users/olamilekan000/received_events","type":"User","site_admin":false},"repo":{"id":166985231,"node_id":"MDEwOlJlcG9zaXRvcnkxNjY5ODUyMzE=","name":"Politico","full_name":"olamilekan000/Politico","private":false,"owner":{"login":"olamilekan000","id":24735571,"node_id":"MDQ6VXNlcjI0NzM1NTcx","avatar_url":"https://avatars2.githubusercontent.com/u/24735571?v=4","gravatar_id":"","url":"https://api.github.com/users/olamilekan000","html_url":"https://github.com/olamilekan000","followers_url":"https://api.github.com/users/olamilekan000/followers","following_url":"https://api.github.com/users/olamilekan000/following{/other_user}","gists_url":"https://api.github.com/users/olamilekan000/gists{/gist_id}","starred_url":"https://api.github.com/users/olamilekan000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olamilekan000/subscriptions","organizations_url":"https://api.github.com/users/olamilekan000/orgs","repos_url":"https://api.github.com/users/olamilekan000/repos","events_url":"https://api.github.com/users/olamilekan000/events{/privacy}","received_events_url":"https://api.github.com/users/olamilekan000/received_events","type":"User","site_admin":false},"html_url":"https://github.com/olamilekan000/Politico","description":"A political web portal","fork":false,"url":"https://api.github.com/repos/olamilekan000/Politico","forks_url":"https://api.github.com/repos/olamilekan000/Politico/forks","keys_url":"https://api.github.com/repos/olamilekan000/Politico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olamilekan000/Politico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olamilekan000/Politico/teams","hooks_url":"https://api.github.com/repos/olamilekan000/Politico/hooks","issue_events_url":"https://api.github.com/repos/olamilekan000/Politico/issues/events{/number}","events_url":"https://api.github.com/repos/olamilekan000/Politico/events","assignees_url":"https://api.github.com/repos/olamilekan000/Politico/assignees{/user}","branches_url":"https://api.github.com/repos/olamilekan000/Politico/branches{/branch}","tags_url":"https://api.github.com/repos/olamilekan000/Politico/tags","blobs_url":"https://api.github.com/repos/olamilekan000/Politico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olamilekan000/Politico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olamilekan000/Politico/git/refs{/sha}","trees_url":"https://api.github.com/repos/olamilekan000/Politico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olamilekan000/Politico/statuses/{sha}","languages_url":"https://api.github.com/repos/olamilekan000/Politico/languages","stargazers_url":"https://api.github.com/repos/olamilekan000/Politico/stargazers","contributors_url":"https://api.github.com/repos/olamilekan000/Politico/contributors","subscribers_url":"https://api.github.com/repos/olamilekan000/Politico/subscribers","subscription_url":"https://api.github.com/repos/olamilekan000/Politico/subscription","commits_url":"https://api.github.com/repos/olamilekan000/Politico/commits{/sha}","git_commits_url":"https://api.github.com/repos/olamilekan000/Politico/git/commits{/sha}","comments_url":"https://api.github.com/repos/olamilekan000/Politico/comments{/number}","issue_comment_url":"https://api.github.com/repos/olamilekan000/Politico/issues/comments{/number}","contents_url":"https://api.github.com/repos/olamilekan000/Politico/contents/{+path}","compare_url":"https://api.github.com/repos/olamilekan000/Politico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olamilekan000/Politico/merges","archive_url":"https://api.github.com/repos/olamilekan000/Politico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olamilekan000/Politico/downloads","issues_url":"https://api.github.com/repos/olamilekan000/Politico/issues{/number}","pulls_url":"https://api.github.com/repos/olamilekan000/Politico/pulls{/number}","milestones_url":"https://api.github.com/repos/olamilekan000/Politico/milestones{/number}","notifications_url":"https://api.github.com/repos/olamilekan000/Politico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olamilekan000/Politico/labels{/name}","releases_url":"https://api.github.com/repos/olamilekan000/Politico/releases{/id}","deployments_url":"https://api.github.com/repos/olamilekan000/Politico/deployments","created_at":"2019-01-22T11:50:51Z","updated_at":"2019-02-06T16:22:45Z","pushed_at":"2019-02-07T19:19:25Z","git_url":"git://github.com/olamilekan000/Politico.git","ssh_url":"git@github.com:olamilekan000/Politico.git","clone_url":"https://github.com/olamilekan000/Politico.git","svn_url":"https://github.com/olamilekan000/Politico","homepage":"https://olamilekan000.github.io/Politico/UI/public","size":196,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/olamilekan000/Politico/pulls/43"},"html":{"href":"https://github.com/olamilekan000/Politico/pull/43"},"issue":{"href":"https://api.github.com/repos/olamilekan000/Politico/issues/43"},"comments":{"href":"https://api.github.com/repos/olamilekan000/Politico/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/olamilekan000/Politico/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/olamilekan000/Politico/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/olamilekan000/Politico/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/olamilekan000/Politico/statuses/22c5f0857a3f62f828583903e35ffa98d7e67773"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":2472,"deletions":315,"changed_files":26}}
other: {"actor":{"display_login":"olamilekan000"}}