{"action":"created","comment":{"url":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/comments/30926996","id":30926996,"diff_hunk":"@@ -0,0 +1,34 @@\n+const\n+  express          = require('express'),\n+  router           = express.Router(),\n+  DriverQuery      = require('../../queries/driver-query'),\n+  DriverSerializer = require('../../serializers/driver-serializer');\n+\n+router.param('userId', function(request, response, next, userId) {\n+  new DriverQuery()\n+    .find(userId)\n+    .then(function(driver) {\n+      request.driver = driver;\n+      return next();\n+    });\n+});\n+\n+router\n+  // Find all drivers [GET /api/drivers]\n+  .get('/api/drivers', function(request, response) {\n+    new DriverQuery()\n+      .findAll()\n+      .then(function(drivers) {\n+        var serializedDrivers = drivers.map(d => new DriverSerializer(d).toJSON());","path":"routes/api/drivers.js","position":22,"original_position":22,"commit_id":"8b5a7fbcaef0ae84aa9787267e74f184875bce76","original_commit_id":"8b5a7fbcaef0ae84aa9787267e74f184875bce76","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2015-05-22T20:13:24Z","updated_at":"2015-05-22T20:13:24Z","html_url":"https://github.com/kennethlimjf/smile-express/pull/5#discussion_r30926996","pull_request_url":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/comments/30926996"},"html":{"href":"https://github.com/kennethlimjf/smile-express/pull/5#discussion_r30926996"},"pull_request":{"href":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/5","id":36064839,"html_url":"https://github.com/kennethlimjf/smile-express/pull/5","diff_url":"https://github.com/kennethlimjf/smile-express/pull/5.diff","patch_url":"https://github.com/kennethlimjf/smile-express/pull/5.patch","issue_url":"https://api.github.com/repos/kennethlimjf/smile-express/issues/5","number":5,"state":"open","locked":false,"title":"Implemented drivers API","user":{"login":"kennethlimjf","id":7250847,"avatar_url":"https://avatars.githubusercontent.com/u/7250847?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethlimjf","html_url":"https://github.com/kennethlimjf","followers_url":"https://api.github.com/users/kennethlimjf/followers","following_url":"https://api.github.com/users/kennethlimjf/following{/other_user}","gists_url":"https://api.github.com/users/kennethlimjf/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethlimjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethlimjf/subscriptions","organizations_url":"https://api.github.com/users/kennethlimjf/orgs","repos_url":"https://api.github.com/users/kennethlimjf/repos","events_url":"https://api.github.com/users/kennethlimjf/events{/privacy}","received_events_url":"https://api.github.com/users/kennethlimjf/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-22T20:11:21Z","updated_at":"2015-05-22T20:13:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e70d544453b0a909b4d8cb16980d5425e5617da4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/5/commits","review_comments_url":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/5/comments","review_comment_url":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kennethlimjf/smile-express/issues/5/comments","statuses_url":"https://api.github.com/repos/kennethlimjf/smile-express/statuses/8b5a7fbcaef0ae84aa9787267e74f184875bce76","head":{"label":"kennethlimjf:driver-api","ref":"driver-api","sha":"8b5a7fbcaef0ae84aa9787267e74f184875bce76","user":{"login":"kennethlimjf","id":7250847,"avatar_url":"https://avatars.githubusercontent.com/u/7250847?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethlimjf","html_url":"https://github.com/kennethlimjf","followers_url":"https://api.github.com/users/kennethlimjf/followers","following_url":"https://api.github.com/users/kennethlimjf/following{/other_user}","gists_url":"https://api.github.com/users/kennethlimjf/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethlimjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethlimjf/subscriptions","organizations_url":"https://api.github.com/users/kennethlimjf/orgs","repos_url":"https://api.github.com/users/kennethlimjf/repos","events_url":"https://api.github.com/users/kennethlimjf/events{/privacy}","received_events_url":"https://api.github.com/users/kennethlimjf/received_events","type":"User","site_admin":false},"repo":{"id":35770519,"name":"smile-express","full_name":"kennethlimjf/smile-express","owner":{"login":"kennethlimjf","id":7250847,"avatar_url":"https://avatars.githubusercontent.com/u/7250847?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethlimjf","html_url":"https://github.com/kennethlimjf","followers_url":"https://api.github.com/users/kennethlimjf/followers","following_url":"https://api.github.com/users/kennethlimjf/following{/other_user}","gists_url":"https://api.github.com/users/kennethlimjf/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethlimjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethlimjf/subscriptions","organizations_url":"https://api.github.com/users/kennethlimjf/orgs","repos_url":"https://api.github.com/users/kennethlimjf/repos","events_url":"https://api.github.com/users/kennethlimjf/events{/privacy}","received_events_url":"https://api.github.com/users/kennethlimjf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kennethlimjf/smile-express","description":"Backend Express application for Cambodian Smiles Project","fork":false,"url":"https://api.github.com/repos/kennethlimjf/smile-express","forks_url":"https://api.github.com/repos/kennethlimjf/smile-express/forks","keys_url":"https://api.github.com/repos/kennethlimjf/smile-express/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kennethlimjf/smile-express/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kennethlimjf/smile-express/teams","hooks_url":"https://api.github.com/repos/kennethlimjf/smile-express/hooks","issue_events_url":"https://api.github.com/repos/kennethlimjf/smile-express/issues/events{/number}","events_url":"https://api.github.com/repos/kennethlimjf/smile-express/events","assignees_url":"https://api.github.com/repos/kennethlimjf/smile-express/assignees{/user}","branches_url":"https://api.github.com/repos/kennethlimjf/smile-express/branches{/branch}","tags_url":"https://api.github.com/repos/kennethlimjf/smile-express/tags","blobs_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/refs{/sha}","trees_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kennethlimjf/smile-express/statuses/{sha}","languages_url":"https://api.github.com/repos/kennethlimjf/smile-express/languages","stargazers_url":"https://api.github.com/repos/kennethlimjf/smile-express/stargazers","contributors_url":"https://api.github.com/repos/kennethlimjf/smile-express/contributors","subscribers_url":"https://api.github.com/repos/kennethlimjf/smile-express/subscribers","subscription_url":"https://api.github.com/repos/kennethlimjf/smile-express/subscription","commits_url":"https://api.github.com/repos/kennethlimjf/smile-express/commits{/sha}","git_commits_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/commits{/sha}","comments_url":"https://api.github.com/repos/kennethlimjf/smile-express/comments{/number}","issue_comment_url":"https://api.github.com/repos/kennethlimjf/smile-express/issues/comments{/number}","contents_url":"https://api.github.com/repos/kennethlimjf/smile-express/contents/{+path}","compare_url":"https://api.github.com/repos/kennethlimjf/smile-express/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kennethlimjf/smile-express/merges","archive_url":"https://api.github.com/repos/kennethlimjf/smile-express/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kennethlimjf/smile-express/downloads","issues_url":"https://api.github.com/repos/kennethlimjf/smile-express/issues{/number}","pulls_url":"https://api.github.com/repos/kennethlimjf/smile-express/pulls{/number}","milestones_url":"https://api.github.com/repos/kennethlimjf/smile-express/milestones{/number}","notifications_url":"https://api.github.com/repos/kennethlimjf/smile-express/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kennethlimjf/smile-express/labels{/name}","releases_url":"https://api.github.com/repos/kennethlimjf/smile-express/releases{/id}","created_at":"2015-05-17T15:05:04Z","updated_at":"2015-05-17T15:31:12Z","pushed_at":"2015-05-22T20:13:18Z","git_url":"git://github.com/kennethlimjf/smile-express.git","ssh_url":"git@github.com:kennethlimjf/smile-express.git","clone_url":"https://github.com/kennethlimjf/smile-express.git","svn_url":"https://github.com/kennethlimjf/smile-express","homepage":"http://cambodiansmiles.com","size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"kennethlimjf:master","ref":"master","sha":"68bdc72a0eac7aaa3b631ef56d0d00c755c7914f","user":{"login":"kennethlimjf","id":7250847,"avatar_url":"https://avatars.githubusercontent.com/u/7250847?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethlimjf","html_url":"https://github.com/kennethlimjf","followers_url":"https://api.github.com/users/kennethlimjf/followers","following_url":"https://api.github.com/users/kennethlimjf/following{/other_user}","gists_url":"https://api.github.com/users/kennethlimjf/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethlimjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethlimjf/subscriptions","organizations_url":"https://api.github.com/users/kennethlimjf/orgs","repos_url":"https://api.github.com/users/kennethlimjf/repos","events_url":"https://api.github.com/users/kennethlimjf/events{/privacy}","received_events_url":"https://api.github.com/users/kennethlimjf/received_events","type":"User","site_admin":false},"repo":{"id":35770519,"name":"smile-express","full_name":"kennethlimjf/smile-express","owner":{"login":"kennethlimjf","id":7250847,"avatar_url":"https://avatars.githubusercontent.com/u/7250847?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethlimjf","html_url":"https://github.com/kennethlimjf","followers_url":"https://api.github.com/users/kennethlimjf/followers","following_url":"https://api.github.com/users/kennethlimjf/following{/other_user}","gists_url":"https://api.github.com/users/kennethlimjf/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethlimjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethlimjf/subscriptions","organizations_url":"https://api.github.com/users/kennethlimjf/orgs","repos_url":"https://api.github.com/users/kennethlimjf/repos","events_url":"https://api.github.com/users/kennethlimjf/events{/privacy}","received_events_url":"https://api.github.com/users/kennethlimjf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kennethlimjf/smile-express","description":"Backend Express application for Cambodian Smiles Project","fork":false,"url":"https://api.github.com/repos/kennethlimjf/smile-express","forks_url":"https://api.github.com/repos/kennethlimjf/smile-express/forks","keys_url":"https://api.github.com/repos/kennethlimjf/smile-express/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kennethlimjf/smile-express/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kennethlimjf/smile-express/teams","hooks_url":"https://api.github.com/repos/kennethlimjf/smile-express/hooks","issue_events_url":"https://api.github.com/repos/kennethlimjf/smile-express/issues/events{/number}","events_url":"https://api.github.com/repos/kennethlimjf/smile-express/events","assignees_url":"https://api.github.com/repos/kennethlimjf/smile-express/assignees{/user}","branches_url":"https://api.github.com/repos/kennethlimjf/smile-express/branches{/branch}","tags_url":"https://api.github.com/repos/kennethlimjf/smile-express/tags","blobs_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/refs{/sha}","trees_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kennethlimjf/smile-express/statuses/{sha}","languages_url":"https://api.github.com/repos/kennethlimjf/smile-express/languages","stargazers_url":"https://api.github.com/repos/kennethlimjf/smile-express/stargazers","contributors_url":"https://api.github.com/repos/kennethlimjf/smile-express/contributors","subscribers_url":"https://api.github.com/repos/kennethlimjf/smile-express/subscribers","subscription_url":"https://api.github.com/repos/kennethlimjf/smile-express/subscription","commits_url":"https://api.github.com/repos/kennethlimjf/smile-express/commits{/sha}","git_commits_url":"https://api.github.com/repos/kennethlimjf/smile-express/git/commits{/sha}","comments_url":"https://api.github.com/repos/kennethlimjf/smile-express/comments{/number}","issue_comment_url":"https://api.github.com/repos/kennethlimjf/smile-express/issues/comments{/number}","contents_url":"https://api.github.com/repos/kennethlimjf/smile-express/contents/{+path}","compare_url":"https://api.github.com/repos/kennethlimjf/smile-express/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kennethlimjf/smile-express/merges","archive_url":"https://api.github.com/repos/kennethlimjf/smile-express/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kennethlimjf/smile-express/downloads","issues_url":"https://api.github.com/repos/kennethlimjf/smile-express/issues{/number}","pulls_url":"https://api.github.com/repos/kennethlimjf/smile-express/pulls{/number}","milestones_url":"https://api.github.com/repos/kennethlimjf/smile-express/milestones{/number}","notifications_url":"https://api.github.com/repos/kennethlimjf/smile-express/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kennethlimjf/smile-express/labels{/name}","releases_url":"https://api.github.com/repos/kennethlimjf/smile-express/releases{/id}","created_at":"2015-05-17T15:05:04Z","updated_at":"2015-05-17T15:31:12Z","pushed_at":"2015-05-22T20:13:18Z","git_url":"git://github.com/kennethlimjf/smile-express.git","ssh_url":"git@github.com:kennethlimjf/smile-express.git","clone_url":"https://github.com/kennethlimjf/smile-express.git","svn_url":"https://github.com/kennethlimjf/smile-express","homepage":"http://cambodiansmiles.com","size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/5"},"html":{"href":"https://github.com/kennethlimjf/smile-express/pull/5"},"issue":{"href":"https://api.github.com/repos/kennethlimjf/smile-express/issues/5"},"comments":{"href":"https://api.github.com/repos/kennethlimjf/smile-express/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kennethlimjf/smile-express/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/kennethlimjf/smile-express/statuses/8b5a7fbcaef0ae84aa9787267e74f184875bce76"}}}}