{"action":"opened","number":95,"pull_request":{"url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/pulls/95","id":324846420,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI0ODQ2NDIw","html_url":"https://github.com/HackYourFuture-CPH/ov-class09-fp/pull/95","diff_url":"https://github.com/HackYourFuture-CPH/ov-class09-fp/pull/95.diff","patch_url":"https://github.com/HackYourFuture-CPH/ov-class09-fp/pull/95.patch","issue_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues/95","number":95,"state":"open","locked":false,"title":"Ptotected routes","user":{"login":"hemagunti","id":9318820,"node_id":"MDQ6VXNlcjkzMTg4MjA=","avatar_url":"https://avatars3.githubusercontent.com/u/9318820?v=4","gravatar_id":"","url":"https://api.github.com/users/hemagunti","html_url":"https://github.com/hemagunti","followers_url":"https://api.github.com/users/hemagunti/followers","following_url":"https://api.github.com/users/hemagunti/following{/other_user}","gists_url":"https://api.github.com/users/hemagunti/gists{/gist_id}","starred_url":"https://api.github.com/users/hemagunti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemagunti/subscriptions","organizations_url":"https://api.github.com/users/hemagunti/orgs","repos_url":"https://api.github.com/users/hemagunti/repos","events_url":"https://api.github.com/users/hemagunti/events{/privacy}","received_events_url":"https://api.github.com/users/hemagunti/received_events","type":"User","site_admin":false},"body":"\r\nTo check if the user is logged in in order to view certain routes and if they do not redirect them to the login page.\r\n\r\nand also if they did login before that we check they are already logged in and then we redirect them into the app.","created_at":"2019-10-04T20:55:14Z","updated_at":"2019-10-04T20:55:14Z","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/HackYourFuture-CPH/ov-class09-fp/pulls/95/commits","review_comments_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/pulls/95/comments","review_comment_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues/95/comments","statuses_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/statuses/d3eeb4c9ca5b5304caff641be10afcb060fceaf9","head":{"label":"HackYourFuture-CPH:ptotected-routes","ref":"ptotected-routes","sha":"d3eeb4c9ca5b5304caff641be10afcb060fceaf9","user":{"login":"HackYourFuture-CPH","id":29845045,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5ODQ1MDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/29845045?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture-CPH","html_url":"https://github.com/HackYourFuture-CPH","followers_url":"https://api.github.com/users/HackYourFuture-CPH/followers","following_url":"https://api.github.com/users/HackYourFuture-CPH/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture-CPH/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture-CPH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture-CPH/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture-CPH/orgs","repos_url":"https://api.github.com/users/HackYourFuture-CPH/repos","events_url":"https://api.github.com/users/HackYourFuture-CPH/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture-CPH/received_events","type":"Organization","site_admin":false},"repo":{"id":202524520,"node_id":"MDEwOlJlcG9zaXRvcnkyMDI1MjQ1MjA=","name":"ov-class09-fp","full_name":"HackYourFuture-CPH/ov-class09-fp","private":false,"owner":{"login":"HackYourFuture-CPH","id":29845045,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5ODQ1MDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/29845045?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture-CPH","html_url":"https://github.com/HackYourFuture-CPH","followers_url":"https://api.github.com/users/HackYourFuture-CPH/followers","following_url":"https://api.github.com/users/HackYourFuture-CPH/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture-CPH/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture-CPH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture-CPH/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture-CPH/orgs","repos_url":"https://api.github.com/users/HackYourFuture-CPH/repos","events_url":"https://api.github.com/users/HackYourFuture-CPH/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture-CPH/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HackYourFuture-CPH/ov-class09-fp","description":"Optimum Voyage project developed by Class09 ","fork":false,"url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp","forks_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/forks","keys_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/teams","hooks_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/hooks","issue_events_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues/events{/number}","events_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/events","assignees_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/assignees{/user}","branches_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/branches{/branch}","tags_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/tags","blobs_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/refs{/sha}","trees_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/statuses/{sha}","languages_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/languages","stargazers_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/stargazers","contributors_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/contributors","subscribers_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/subscribers","subscription_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/subscription","commits_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/commits{/sha}","git_commits_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/commits{/sha}","comments_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/comments{/number}","issue_comment_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues/comments{/number}","contents_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/contents/{+path}","compare_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/merges","archive_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/downloads","issues_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues{/number}","pulls_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/pulls{/number}","milestones_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/milestones{/number}","notifications_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/labels{/name}","releases_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/releases{/id}","deployments_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/deployments","created_at":"2019-08-15T10:51:12Z","updated_at":"2019-10-04T15:09:42Z","pushed_at":"2019-10-04T20:52:10Z","git_url":"git://github.com/HackYourFuture-CPH/ov-class09-fp.git","ssh_url":"git@github.com:HackYourFuture-CPH/ov-class09-fp.git","clone_url":"https://github.com/HackYourFuture-CPH/ov-class09-fp.git","svn_url":"https://github.com/HackYourFuture-CPH/ov-class09-fp","homepage":null,"size":1877,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":8,"watchers":1,"default_branch":"develop"}},"base":{"label":"HackYourFuture-CPH:develop","ref":"develop","sha":"95833dfabeecb63cdc3b06d84f2351a97e7dae05","user":{"login":"HackYourFuture-CPH","id":29845045,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5ODQ1MDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/29845045?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture-CPH","html_url":"https://github.com/HackYourFuture-CPH","followers_url":"https://api.github.com/users/HackYourFuture-CPH/followers","following_url":"https://api.github.com/users/HackYourFuture-CPH/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture-CPH/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture-CPH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture-CPH/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture-CPH/orgs","repos_url":"https://api.github.com/users/HackYourFuture-CPH/repos","events_url":"https://api.github.com/users/HackYourFuture-CPH/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture-CPH/received_events","type":"Organization","site_admin":false},"repo":{"id":202524520,"node_id":"MDEwOlJlcG9zaXRvcnkyMDI1MjQ1MjA=","name":"ov-class09-fp","full_name":"HackYourFuture-CPH/ov-class09-fp","private":false,"owner":{"login":"HackYourFuture-CPH","id":29845045,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5ODQ1MDQ1","avatar_url":"https://avatars0.githubusercontent.com/u/29845045?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture-CPH","html_url":"https://github.com/HackYourFuture-CPH","followers_url":"https://api.github.com/users/HackYourFuture-CPH/followers","following_url":"https://api.github.com/users/HackYourFuture-CPH/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture-CPH/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture-CPH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture-CPH/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture-CPH/orgs","repos_url":"https://api.github.com/users/HackYourFuture-CPH/repos","events_url":"https://api.github.com/users/HackYourFuture-CPH/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture-CPH/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HackYourFuture-CPH/ov-class09-fp","description":"Optimum Voyage project developed by Class09 ","fork":false,"url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp","forks_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/forks","keys_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/teams","hooks_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/hooks","issue_events_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues/events{/number}","events_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/events","assignees_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/assignees{/user}","branches_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/branches{/branch}","tags_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/tags","blobs_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/refs{/sha}","trees_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/statuses/{sha}","languages_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/languages","stargazers_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/stargazers","contributors_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/contributors","subscribers_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/subscribers","subscription_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/subscription","commits_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/commits{/sha}","git_commits_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/git/commits{/sha}","comments_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/comments{/number}","issue_comment_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues/comments{/number}","contents_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/contents/{+path}","compare_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/merges","archive_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/downloads","issues_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues{/number}","pulls_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/pulls{/number}","milestones_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/milestones{/number}","notifications_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/labels{/name}","releases_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/releases{/id}","deployments_url":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/deployments","created_at":"2019-08-15T10:51:12Z","updated_at":"2019-10-04T15:09:42Z","pushed_at":"2019-10-04T20:52:10Z","git_url":"git://github.com/HackYourFuture-CPH/ov-class09-fp.git","ssh_url":"git@github.com:HackYourFuture-CPH/ov-class09-fp.git","clone_url":"https://github.com/HackYourFuture-CPH/ov-class09-fp.git","svn_url":"https://github.com/HackYourFuture-CPH/ov-class09-fp","homepage":null,"size":1877,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":8,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/pulls/95"},"html":{"href":"https://github.com/HackYourFuture-CPH/ov-class09-fp/pull/95"},"issue":{"href":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues/95"},"comments":{"href":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/HackYourFuture-CPH/ov-class09-fp/statuses/d3eeb4c9ca5b5304caff641be10afcb060fceaf9"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":11,"additions":161,"deletions":3,"changed_files":6}}
{"actor":{"display_login":"hemagunti"}}