{"action":"created","comment":{"url":"https://api.github.com/repos/tzelic/oodles/pulls/comments/85734868","pull_request_review_id":6432382,"id":85734868,"diff_hunk":"@@ -68,28 +73,69 @@ let routes = [\n   {\n     method: 'GET',\n     path: '/oodler/{id}',\n-    handler: get\n+    config: {\n+      handler: get,\n+      validate: {\n+        params: {\n+          id: Joi.string().token()\n+        }\n+      }\n+    }\n   },\n   {\n     method: 'POST',\n     path: '/oodler',\n-    handler: create\n+    config: {\n+      handler: create,\n+      validate: {\n+        payload: {\n+          firstName: Joi.string().alphanum().required(),\n+          lastName: Joi.string().alphanum().required(),\n+          email: Joi.string().email().required(),\n+          office: Joi.string().required(),\n+          password: Joi.string().min(6).max(200).required(),","path":"server/routes/oodler.js","position":null,"original_position":54,"commit_id":"ed45949fa2aac5f4f4ec41ffdc9a9b3ce5fe0c0f","original_commit_id":"281e0126e87ae0ad649491c6939402006fcff868","user":{"login":"b0rza","id":6151763,"avatar_url":"https://avatars.githubusercontent.com/u/6151763?v=3","gravatar_id":"","url":"https://api.github.com/users/b0rza","html_url":"https://github.com/b0rza","followers_url":"https://api.github.com/users/b0rza/followers","following_url":"https://api.github.com/users/b0rza/following{/other_user}","gists_url":"https://api.github.com/users/b0rza/gists{/gist_id}","starred_url":"https://api.github.com/users/b0rza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b0rza/subscriptions","organizations_url":"https://api.github.com/users/b0rza/orgs","repos_url":"https://api.github.com/users/b0rza/repos","events_url":"https://api.github.com/users/b0rza/events{/privacy}","received_events_url":"https://api.github.com/users/b0rza/received_events","type":"User","site_admin":false},"body":"Yes, please :)","created_at":"2016-10-31T13:13:20Z","updated_at":"2016-10-31T13:13:20Z","html_url":"https://github.com/tzelic/oodles/pull/31#discussion_r85734868","pull_request_url":"https://api.github.com/repos/tzelic/oodles/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/tzelic/oodles/pulls/comments/85734868"},"html":{"href":"https://github.com/tzelic/oodles/pull/31#discussion_r85734868"},"pull_request":{"href":"https://api.github.com/repos/tzelic/oodles/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/tzelic/oodles/pulls/31","id":90842708,"html_url":"https://github.com/tzelic/oodles/pull/31","diff_url":"https://github.com/tzelic/oodles/pull/31.diff","patch_url":"https://github.com/tzelic/oodles/pull/31.patch","issue_url":"https://api.github.com/repos/tzelic/oodles/issues/31","number":31,"state":"open","locked":false,"title":"Validation","user":{"login":"tzelic","id":19515679,"avatar_url":"https://avatars.githubusercontent.com/u/19515679?v=3","gravatar_id":"","url":"https://api.github.com/users/tzelic","html_url":"https://github.com/tzelic","followers_url":"https://api.github.com/users/tzelic/followers","following_url":"https://api.github.com/users/tzelic/following{/other_user}","gists_url":"https://api.github.com/users/tzelic/gists{/gist_id}","starred_url":"https://api.github.com/users/tzelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzelic/subscriptions","organizations_url":"https://api.github.com/users/tzelic/orgs","repos_url":"https://api.github.com/users/tzelic/repos","events_url":"https://api.github.com/users/tzelic/events{/privacy}","received_events_url":"https://api.github.com/users/tzelic/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-25T16:22:37Z","updated_at":"2016-10-31T13:13:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db98ae4915d8d4e0ef653dd788739c23c4e2b558","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tzelic/oodles/pulls/31/commits","review_comments_url":"https://api.github.com/repos/tzelic/oodles/pulls/31/comments","review_comment_url":"https://api.github.com/repos/tzelic/oodles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tzelic/oodles/issues/31/comments","statuses_url":"https://api.github.com/repos/tzelic/oodles/statuses/ed45949fa2aac5f4f4ec41ffdc9a9b3ce5fe0c0f","head":{"label":"tzelic:joi-validation","ref":"joi-validation","sha":"ed45949fa2aac5f4f4ec41ffdc9a9b3ce5fe0c0f","user":{"login":"tzelic","id":19515679,"avatar_url":"https://avatars.githubusercontent.com/u/19515679?v=3","gravatar_id":"","url":"https://api.github.com/users/tzelic","html_url":"https://github.com/tzelic","followers_url":"https://api.github.com/users/tzelic/followers","following_url":"https://api.github.com/users/tzelic/following{/other_user}","gists_url":"https://api.github.com/users/tzelic/gists{/gist_id}","starred_url":"https://api.github.com/users/tzelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzelic/subscriptions","organizations_url":"https://api.github.com/users/tzelic/orgs","repos_url":"https://api.github.com/users/tzelic/repos","events_url":"https://api.github.com/users/tzelic/events{/privacy}","received_events_url":"https://api.github.com/users/tzelic/received_events","type":"User","site_admin":false},"repo":{"id":68711649,"name":"oodles","full_name":"tzelic/oodles","owner":{"login":"tzelic","id":19515679,"avatar_url":"https://avatars.githubusercontent.com/u/19515679?v=3","gravatar_id":"","url":"https://api.github.com/users/tzelic","html_url":"https://github.com/tzelic","followers_url":"https://api.github.com/users/tzelic/followers","following_url":"https://api.github.com/users/tzelic/following{/other_user}","gists_url":"https://api.github.com/users/tzelic/gists{/gist_id}","starred_url":"https://api.github.com/users/tzelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzelic/subscriptions","organizations_url":"https://api.github.com/users/tzelic/orgs","repos_url":"https://api.github.com/users/tzelic/repos","events_url":"https://api.github.com/users/tzelic/events{/privacy}","received_events_url":"https://api.github.com/users/tzelic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tzelic/oodles","description":"App for ordering loads (or oodles) of stuff for office","fork":false,"url":"https://api.github.com/repos/tzelic/oodles","forks_url":"https://api.github.com/repos/tzelic/oodles/forks","keys_url":"https://api.github.com/repos/tzelic/oodles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tzelic/oodles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tzelic/oodles/teams","hooks_url":"https://api.github.com/repos/tzelic/oodles/hooks","issue_events_url":"https://api.github.com/repos/tzelic/oodles/issues/events{/number}","events_url":"https://api.github.com/repos/tzelic/oodles/events","assignees_url":"https://api.github.com/repos/tzelic/oodles/assignees{/user}","branches_url":"https://api.github.com/repos/tzelic/oodles/branches{/branch}","tags_url":"https://api.github.com/repos/tzelic/oodles/tags","blobs_url":"https://api.github.com/repos/tzelic/oodles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tzelic/oodles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tzelic/oodles/git/refs{/sha}","trees_url":"https://api.github.com/repos/tzelic/oodles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tzelic/oodles/statuses/{sha}","languages_url":"https://api.github.com/repos/tzelic/oodles/languages","stargazers_url":"https://api.github.com/repos/tzelic/oodles/stargazers","contributors_url":"https://api.github.com/repos/tzelic/oodles/contributors","subscribers_url":"https://api.github.com/repos/tzelic/oodles/subscribers","subscription_url":"https://api.github.com/repos/tzelic/oodles/subscription","commits_url":"https://api.github.com/repos/tzelic/oodles/commits{/sha}","git_commits_url":"https://api.github.com/repos/tzelic/oodles/git/commits{/sha}","comments_url":"https://api.github.com/repos/tzelic/oodles/comments{/number}","issue_comment_url":"https://api.github.com/repos/tzelic/oodles/issues/comments{/number}","contents_url":"https://api.github.com/repos/tzelic/oodles/contents/{+path}","compare_url":"https://api.github.com/repos/tzelic/oodles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tzelic/oodles/merges","archive_url":"https://api.github.com/repos/tzelic/oodles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tzelic/oodles/downloads","issues_url":"https://api.github.com/repos/tzelic/oodles/issues{/number}","pulls_url":"https://api.github.com/repos/tzelic/oodles/pulls{/number}","milestones_url":"https://api.github.com/repos/tzelic/oodles/milestones{/number}","notifications_url":"https://api.github.com/repos/tzelic/oodles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tzelic/oodles/labels{/name}","releases_url":"https://api.github.com/repos/tzelic/oodles/releases{/id}","deployments_url":"https://api.github.com/repos/tzelic/oodles/deployments","created_at":"2016-09-20T12:54:00Z","updated_at":"2016-10-24T09:39:00Z","pushed_at":"2016-10-31T13:04:23Z","git_url":"git://github.com/tzelic/oodles.git","ssh_url":"git@github.com:tzelic/oodles.git","clone_url":"https://github.com/tzelic/oodles.git","svn_url":"https://github.com/tzelic/oodles","homepage":"","size":258,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"tzelic:dev-refactoring","ref":"dev-refactoring","sha":"63c79b3a9fb84eae805683674c24fe0480e4ad1c","user":{"login":"tzelic","id":19515679,"avatar_url":"https://avatars.githubusercontent.com/u/19515679?v=3","gravatar_id":"","url":"https://api.github.com/users/tzelic","html_url":"https://github.com/tzelic","followers_url":"https://api.github.com/users/tzelic/followers","following_url":"https://api.github.com/users/tzelic/following{/other_user}","gists_url":"https://api.github.com/users/tzelic/gists{/gist_id}","starred_url":"https://api.github.com/users/tzelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzelic/subscriptions","organizations_url":"https://api.github.com/users/tzelic/orgs","repos_url":"https://api.github.com/users/tzelic/repos","events_url":"https://api.github.com/users/tzelic/events{/privacy}","received_events_url":"https://api.github.com/users/tzelic/received_events","type":"User","site_admin":false},"repo":{"id":68711649,"name":"oodles","full_name":"tzelic/oodles","owner":{"login":"tzelic","id":19515679,"avatar_url":"https://avatars.githubusercontent.com/u/19515679?v=3","gravatar_id":"","url":"https://api.github.com/users/tzelic","html_url":"https://github.com/tzelic","followers_url":"https://api.github.com/users/tzelic/followers","following_url":"https://api.github.com/users/tzelic/following{/other_user}","gists_url":"https://api.github.com/users/tzelic/gists{/gist_id}","starred_url":"https://api.github.com/users/tzelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzelic/subscriptions","organizations_url":"https://api.github.com/users/tzelic/orgs","repos_url":"https://api.github.com/users/tzelic/repos","events_url":"https://api.github.com/users/tzelic/events{/privacy}","received_events_url":"https://api.github.com/users/tzelic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tzelic/oodles","description":"App for ordering loads (or oodles) of stuff for office","fork":false,"url":"https://api.github.com/repos/tzelic/oodles","forks_url":"https://api.github.com/repos/tzelic/oodles/forks","keys_url":"https://api.github.com/repos/tzelic/oodles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tzelic/oodles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tzelic/oodles/teams","hooks_url":"https://api.github.com/repos/tzelic/oodles/hooks","issue_events_url":"https://api.github.com/repos/tzelic/oodles/issues/events{/number}","events_url":"https://api.github.com/repos/tzelic/oodles/events","assignees_url":"https://api.github.com/repos/tzelic/oodles/assignees{/user}","branches_url":"https://api.github.com/repos/tzelic/oodles/branches{/branch}","tags_url":"https://api.github.com/repos/tzelic/oodles/tags","blobs_url":"https://api.github.com/repos/tzelic/oodles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tzelic/oodles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tzelic/oodles/git/refs{/sha}","trees_url":"https://api.github.com/repos/tzelic/oodles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tzelic/oodles/statuses/{sha}","languages_url":"https://api.github.com/repos/tzelic/oodles/languages","stargazers_url":"https://api.github.com/repos/tzelic/oodles/stargazers","contributors_url":"https://api.github.com/repos/tzelic/oodles/contributors","subscribers_url":"https://api.github.com/repos/tzelic/oodles/subscribers","subscription_url":"https://api.github.com/repos/tzelic/oodles/subscription","commits_url":"https://api.github.com/repos/tzelic/oodles/commits{/sha}","git_commits_url":"https://api.github.com/repos/tzelic/oodles/git/commits{/sha}","comments_url":"https://api.github.com/repos/tzelic/oodles/comments{/number}","issue_comment_url":"https://api.github.com/repos/tzelic/oodles/issues/comments{/number}","contents_url":"https://api.github.com/repos/tzelic/oodles/contents/{+path}","compare_url":"https://api.github.com/repos/tzelic/oodles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tzelic/oodles/merges","archive_url":"https://api.github.com/repos/tzelic/oodles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tzelic/oodles/downloads","issues_url":"https://api.github.com/repos/tzelic/oodles/issues{/number}","pulls_url":"https://api.github.com/repos/tzelic/oodles/pulls{/number}","milestones_url":"https://api.github.com/repos/tzelic/oodles/milestones{/number}","notifications_url":"https://api.github.com/repos/tzelic/oodles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tzelic/oodles/labels{/name}","releases_url":"https://api.github.com/repos/tzelic/oodles/releases{/id}","deployments_url":"https://api.github.com/repos/tzelic/oodles/deployments","created_at":"2016-09-20T12:54:00Z","updated_at":"2016-10-24T09:39:00Z","pushed_at":"2016-10-31T13:04:23Z","git_url":"git://github.com/tzelic/oodles.git","ssh_url":"git@github.com:tzelic/oodles.git","clone_url":"https://github.com/tzelic/oodles.git","svn_url":"https://github.com/tzelic/oodles","homepage":"","size":258,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tzelic/oodles/pulls/31"},"html":{"href":"https://github.com/tzelic/oodles/pull/31"},"issue":{"href":"https://api.github.com/repos/tzelic/oodles/issues/31"},"comments":{"href":"https://api.github.com/repos/tzelic/oodles/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/tzelic/oodles/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/tzelic/oodles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tzelic/oodles/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/tzelic/oodles/statuses/ed45949fa2aac5f4f4ec41ffdc9a9b3ce5fe0c0f"}}}}
{"actor":{"display_login":"b0rza"}}