{"action":"created","comment":{"url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/comments/225359830","pull_request_review_id":164940922,"id":225359830,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTM1OTgzMA==","diff_hunk":"@@ -0,0 +1,11 @@\n+import { Router } from \"express\";\n+import * as AsyncHandler from 'express-async-handler';\n+\n+import * as UserController from '../../../controllers/UserController';\n+\n+const router = Router();\n+\n+router.get('/:uuid', AsyncHandler(UserController.confirmUserEmail));","path":"sources/api/routes/users/validate/index.ts","position":8,"original_position":8,"commit_id":"84a9f6cb27dc0aa51d0c513a0321eb36425befee","original_commit_id":"84a9f6cb27dc0aa51d0c513a0321eb36425befee","user":{"login":"benard-g","id":29625052,"node_id":"MDQ6VXNlcjI5NjI1MDUy","avatar_url":"https://avatars0.githubusercontent.com/u/29625052?v=4","gravatar_id":"","url":"https://api.github.com/users/benard-g","html_url":"https://github.com/benard-g","followers_url":"https://api.github.com/users/benard-g/followers","following_url":"https://api.github.com/users/benard-g/following{/other_user}","gists_url":"https://api.github.com/users/benard-g/gists{/gist_id}","starred_url":"https://api.github.com/users/benard-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benard-g/subscriptions","organizations_url":"https://api.github.com/users/benard-g/orgs","repos_url":"https://api.github.com/users/benard-g/repos","events_url":"https://api.github.com/users/benard-g/events{/privacy}","received_events_url":"https://api.github.com/users/benard-g/received_events","type":"User","site_admin":false},"body":"`/users/validate` should be the route for the user named \"validate\". It should not be used for email validation\r\n\r\nI suggest another route for this:\r\n- `/auth/validate-email/{uuid}`\r\n- `/validate-email/{uuid}`\r\n- `/validate-user/{uuid}`","created_at":"2018-10-16T00:30:42Z","updated_at":"2018-10-16T00:42:50Z","html_url":"https://github.com/PerfectWeek/web-api/pull/58#discussion_r225359830","pull_request_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/58","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/comments/225359830"},"html":{"href":"https://github.com/PerfectWeek/web-api/pull/58#discussion_r225359830"},"pull_request":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/58","id":223073697,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMDczNjk3","html_url":"https://github.com/PerfectWeek/web-api/pull/58","diff_url":"https://github.com/PerfectWeek/web-api/pull/58.diff","patch_url":"https://github.com/PerfectWeek/web-api/pull/58.patch","issue_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/58","number":58,"state":"open","locked":false,"title":"Feature/26 verify email","user":{"login":"alifdev","id":21305744,"node_id":"MDQ6VXNlcjIxMzA1NzQ0","avatar_url":"https://avatars0.githubusercontent.com/u/21305744?v=4","gravatar_id":"","url":"https://api.github.com/users/alifdev","html_url":"https://github.com/alifdev","followers_url":"https://api.github.com/users/alifdev/followers","following_url":"https://api.github.com/users/alifdev/following{/other_user}","gists_url":"https://api.github.com/users/alifdev/gists{/gist_id}","starred_url":"https://api.github.com/users/alifdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alifdev/subscriptions","organizations_url":"https://api.github.com/users/alifdev/orgs","repos_url":"https://api.github.com/users/alifdev/repos","events_url":"https://api.github.com/users/alifdev/events{/privacy}","received_events_url":"https://api.github.com/users/alifdev/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-15T23:34:36Z","updated_at":"2018-10-16T00:42:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79a8ade6530e955321b24115e89d1981716d6252","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1049566152,"node_id":"MDU6TGFiZWwxMDQ5NTY2MTUy","url":"https://api.github.com/repos/PerfectWeek/web-api/labels/Priority:%20High","name":"Priority: High","color":"eb6420","default":false},{"id":1049566154,"node_id":"MDU6TGFiZWwxMDQ5NTY2MTU0","url":"https://api.github.com/repos/PerfectWeek/web-api/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"84b6eb","default":false}],"milestone":{"url":"https://api.github.com/repos/PerfectWeek/web-api/milestones/4","html_url":"https://github.com/PerfectWeek/web-api/milestone/4","labels_url":"https://api.github.com/repos/PerfectWeek/web-api/milestones/4/labels","id":3712669,"node_id":"MDk6TWlsZXN0b25lMzcxMjY2OQ==","number":4,"title":"2018-10 Delivery","description":null,"creator":{"login":"benard-g","id":29625052,"node_id":"MDQ6VXNlcjI5NjI1MDUy","avatar_url":"https://avatars0.githubusercontent.com/u/29625052?v=4","gravatar_id":"","url":"https://api.github.com/users/benard-g","html_url":"https://github.com/benard-g","followers_url":"https://api.github.com/users/benard-g/followers","following_url":"https://api.github.com/users/benard-g/following{/other_user}","gists_url":"https://api.github.com/users/benard-g/gists{/gist_id}","starred_url":"https://api.github.com/users/benard-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benard-g/subscriptions","organizations_url":"https://api.github.com/users/benard-g/orgs","repos_url":"https://api.github.com/users/benard-g/repos","events_url":"https://api.github.com/users/benard-g/events{/privacy}","received_events_url":"https://api.github.com/users/benard-g/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":15,"state":"open","created_at":"2018-10-04T15:19:52Z","updated_at":"2018-10-15T23:34:36Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/58/commits","review_comments_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/58/comments","review_comment_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/58/comments","statuses_url":"https://api.github.com/repos/PerfectWeek/web-api/statuses/84a9f6cb27dc0aa51d0c513a0321eb36425befee","head":{"label":"PerfectWeek:FEATURE/26-verify_email","ref":"FEATURE/26-verify_email","sha":"84a9f6cb27dc0aa51d0c513a0321eb36425befee","user":{"login":"PerfectWeek","id":38836857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODM2ODU3","avatar_url":"https://avatars3.githubusercontent.com/u/38836857?v=4","gravatar_id":"","url":"https://api.github.com/users/PerfectWeek","html_url":"https://github.com/PerfectWeek","followers_url":"https://api.github.com/users/PerfectWeek/followers","following_url":"https://api.github.com/users/PerfectWeek/following{/other_user}","gists_url":"https://api.github.com/users/PerfectWeek/gists{/gist_id}","starred_url":"https://api.github.com/users/PerfectWeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerfectWeek/subscriptions","organizations_url":"https://api.github.com/users/PerfectWeek/orgs","repos_url":"https://api.github.com/users/PerfectWeek/repos","events_url":"https://api.github.com/users/PerfectWeek/events{/privacy}","received_events_url":"https://api.github.com/users/PerfectWeek/received_events","type":"Organization","site_admin":false},"repo":{"id":133144975,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMxNDQ5NzU=","name":"web-api","full_name":"PerfectWeek/web-api","private":false,"owner":{"login":"PerfectWeek","id":38836857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODM2ODU3","avatar_url":"https://avatars3.githubusercontent.com/u/38836857?v=4","gravatar_id":"","url":"https://api.github.com/users/PerfectWeek","html_url":"https://github.com/PerfectWeek","followers_url":"https://api.github.com/users/PerfectWeek/followers","following_url":"https://api.github.com/users/PerfectWeek/following{/other_user}","gists_url":"https://api.github.com/users/PerfectWeek/gists{/gist_id}","starred_url":"https://api.github.com/users/PerfectWeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerfectWeek/subscriptions","organizations_url":"https://api.github.com/users/PerfectWeek/orgs","repos_url":"https://api.github.com/users/PerfectWeek/repos","events_url":"https://api.github.com/users/PerfectWeek/events{/privacy}","received_events_url":"https://api.github.com/users/PerfectWeek/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PerfectWeek/web-api","description":"The Perfect Week API","fork":false,"url":"https://api.github.com/repos/PerfectWeek/web-api","forks_url":"https://api.github.com/repos/PerfectWeek/web-api/forks","keys_url":"https://api.github.com/repos/PerfectWeek/web-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PerfectWeek/web-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PerfectWeek/web-api/teams","hooks_url":"https://api.github.com/repos/PerfectWeek/web-api/hooks","issue_events_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/events{/number}","events_url":"https://api.github.com/repos/PerfectWeek/web-api/events","assignees_url":"https://api.github.com/repos/PerfectWeek/web-api/assignees{/user}","branches_url":"https://api.github.com/repos/PerfectWeek/web-api/branches{/branch}","tags_url":"https://api.github.com/repos/PerfectWeek/web-api/tags","blobs_url":"https://api.github.com/repos/PerfectWeek/web-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PerfectWeek/web-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PerfectWeek/web-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/PerfectWeek/web-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PerfectWeek/web-api/statuses/{sha}","languages_url":"https://api.github.com/repos/PerfectWeek/web-api/languages","stargazers_url":"https://api.github.com/repos/PerfectWeek/web-api/stargazers","contributors_url":"https://api.github.com/repos/PerfectWeek/web-api/contributors","subscribers_url":"https://api.github.com/repos/PerfectWeek/web-api/subscribers","subscription_url":"https://api.github.com/repos/PerfectWeek/web-api/subscription","commits_url":"https://api.github.com/repos/PerfectWeek/web-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/PerfectWeek/web-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/PerfectWeek/web-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/PerfectWeek/web-api/contents/{+path}","compare_url":"https://api.github.com/repos/PerfectWeek/web-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PerfectWeek/web-api/merges","archive_url":"https://api.github.com/repos/PerfectWeek/web-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PerfectWeek/web-api/downloads","issues_url":"https://api.github.com/repos/PerfectWeek/web-api/issues{/number}","pulls_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls{/number}","milestones_url":"https://api.github.com/repos/PerfectWeek/web-api/milestones{/number}","notifications_url":"https://api.github.com/repos/PerfectWeek/web-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PerfectWeek/web-api/labels{/name}","releases_url":"https://api.github.com/repos/PerfectWeek/web-api/releases{/id}","deployments_url":"https://api.github.com/repos/PerfectWeek/web-api/deployments","created_at":"2018-05-12T12:41:10Z","updated_at":"2018-10-09T04:13:59Z","pushed_at":"2018-10-15T23:34:36Z","git_url":"git://github.com/PerfectWeek/web-api.git","ssh_url":"git@github.com:PerfectWeek/web-api.git","clone_url":"https://github.com/PerfectWeek/web-api.git","svn_url":"https://github.com/PerfectWeek/web-api","homepage":"","size":315,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":5,"watchers":0,"default_branch":"dev"}},"base":{"label":"PerfectWeek:dev","ref":"dev","sha":"c60b290d86ba19dc9c18663d6687711dd71c303e","user":{"login":"PerfectWeek","id":38836857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODM2ODU3","avatar_url":"https://avatars3.githubusercontent.com/u/38836857?v=4","gravatar_id":"","url":"https://api.github.com/users/PerfectWeek","html_url":"https://github.com/PerfectWeek","followers_url":"https://api.github.com/users/PerfectWeek/followers","following_url":"https://api.github.com/users/PerfectWeek/following{/other_user}","gists_url":"https://api.github.com/users/PerfectWeek/gists{/gist_id}","starred_url":"https://api.github.com/users/PerfectWeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerfectWeek/subscriptions","organizations_url":"https://api.github.com/users/PerfectWeek/orgs","repos_url":"https://api.github.com/users/PerfectWeek/repos","events_url":"https://api.github.com/users/PerfectWeek/events{/privacy}","received_events_url":"https://api.github.com/users/PerfectWeek/received_events","type":"Organization","site_admin":false},"repo":{"id":133144975,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMxNDQ5NzU=","name":"web-api","full_name":"PerfectWeek/web-api","private":false,"owner":{"login":"PerfectWeek","id":38836857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4ODM2ODU3","avatar_url":"https://avatars3.githubusercontent.com/u/38836857?v=4","gravatar_id":"","url":"https://api.github.com/users/PerfectWeek","html_url":"https://github.com/PerfectWeek","followers_url":"https://api.github.com/users/PerfectWeek/followers","following_url":"https://api.github.com/users/PerfectWeek/following{/other_user}","gists_url":"https://api.github.com/users/PerfectWeek/gists{/gist_id}","starred_url":"https://api.github.com/users/PerfectWeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerfectWeek/subscriptions","organizations_url":"https://api.github.com/users/PerfectWeek/orgs","repos_url":"https://api.github.com/users/PerfectWeek/repos","events_url":"https://api.github.com/users/PerfectWeek/events{/privacy}","received_events_url":"https://api.github.com/users/PerfectWeek/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PerfectWeek/web-api","description":"The Perfect Week API","fork":false,"url":"https://api.github.com/repos/PerfectWeek/web-api","forks_url":"https://api.github.com/repos/PerfectWeek/web-api/forks","keys_url":"https://api.github.com/repos/PerfectWeek/web-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PerfectWeek/web-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PerfectWeek/web-api/teams","hooks_url":"https://api.github.com/repos/PerfectWeek/web-api/hooks","issue_events_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/events{/number}","events_url":"https://api.github.com/repos/PerfectWeek/web-api/events","assignees_url":"https://api.github.com/repos/PerfectWeek/web-api/assignees{/user}","branches_url":"https://api.github.com/repos/PerfectWeek/web-api/branches{/branch}","tags_url":"https://api.github.com/repos/PerfectWeek/web-api/tags","blobs_url":"https://api.github.com/repos/PerfectWeek/web-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PerfectWeek/web-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PerfectWeek/web-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/PerfectWeek/web-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PerfectWeek/web-api/statuses/{sha}","languages_url":"https://api.github.com/repos/PerfectWeek/web-api/languages","stargazers_url":"https://api.github.com/repos/PerfectWeek/web-api/stargazers","contributors_url":"https://api.github.com/repos/PerfectWeek/web-api/contributors","subscribers_url":"https://api.github.com/repos/PerfectWeek/web-api/subscribers","subscription_url":"https://api.github.com/repos/PerfectWeek/web-api/subscription","commits_url":"https://api.github.com/repos/PerfectWeek/web-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/PerfectWeek/web-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/PerfectWeek/web-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/PerfectWeek/web-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/PerfectWeek/web-api/contents/{+path}","compare_url":"https://api.github.com/repos/PerfectWeek/web-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PerfectWeek/web-api/merges","archive_url":"https://api.github.com/repos/PerfectWeek/web-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PerfectWeek/web-api/downloads","issues_url":"https://api.github.com/repos/PerfectWeek/web-api/issues{/number}","pulls_url":"https://api.github.com/repos/PerfectWeek/web-api/pulls{/number}","milestones_url":"https://api.github.com/repos/PerfectWeek/web-api/milestones{/number}","notifications_url":"https://api.github.com/repos/PerfectWeek/web-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PerfectWeek/web-api/labels{/name}","releases_url":"https://api.github.com/repos/PerfectWeek/web-api/releases{/id}","deployments_url":"https://api.github.com/repos/PerfectWeek/web-api/deployments","created_at":"2018-05-12T12:41:10Z","updated_at":"2018-10-09T04:13:59Z","pushed_at":"2018-10-15T23:34:36Z","git_url":"git://github.com/PerfectWeek/web-api.git","ssh_url":"git@github.com:PerfectWeek/web-api.git","clone_url":"https://github.com/PerfectWeek/web-api.git","svn_url":"https://github.com/PerfectWeek/web-api","homepage":"","size":315,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":5,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/58"},"html":{"href":"https://github.com/PerfectWeek/web-api/pull/58"},"issue":{"href":"https://api.github.com/repos/PerfectWeek/web-api/issues/58"},"comments":{"href":"https://api.github.com/repos/PerfectWeek/web-api/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PerfectWeek/web-api/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/PerfectWeek/web-api/statuses/84a9f6cb27dc0aa51d0c513a0321eb36425befee"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"benard-g"}}