{"action":"created","comment":{"url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/comments/72690433","id":72690433,"diff_hunk":"@@ -0,0 +1,40 @@\n+'use strict';\n+var router = require('express').Router();\n+\n+var _ = require('lodash');\n+var Product = require('../../db/models/product');\n+var Categories = require('../../db/models/product');\n+var Reviews = require('../../db/models/review');\n+\n+router.get('/', function (req, res, next) {\n+    Product.findAll()\n+    .then(function (products) {\n+        res.json(products);\n+    })\n+    .catch(next);\n+});\n+\n+router.get('/:id', function (req, res, next) {\n+    Product.findById(req.params.id)\n+    .then(function (product) {\n+      if (product) {\n+        res.json(product);\n+      } else {\n+        res.status(404).send();","path":"server/app/routes/products.js","position":23,"original_position":23,"commit_id":"49b333268519d10b00234563a3c47638c43e2f48","original_commit_id":"49b333268519d10b00234563a3c47638c43e2f48","user":{"login":"jsonunger","id":16748392,"avatar_url":"https://avatars.githubusercontent.com/u/16748392?v=3","gravatar_id":"","url":"https://api.github.com/users/jsonunger","html_url":"https://github.com/jsonunger","followers_url":"https://api.github.com/users/jsonunger/followers","following_url":"https://api.github.com/users/jsonunger/following{/other_user}","gists_url":"https://api.github.com/users/jsonunger/gists{/gist_id}","starred_url":"https://api.github.com/users/jsonunger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsonunger/subscriptions","organizations_url":"https://api.github.com/users/jsonunger/orgs","repos_url":"https://api.github.com/users/jsonunger/repos","events_url":"https://api.github.com/users/jsonunger/events{/privacy}","received_events_url":"https://api.github.com/users/jsonunger/received_events","type":"User","site_admin":false},"body":"Use the error handler that FSG gives you.\r\n```js\r\nvar err = new Error('Product not found');\r\nerr.status = 404;\r\nnext(err);\r\n```","created_at":"2016-07-28T19:52:54Z","updated_at":"2016-07-28T19:52:54Z","html_url":"https://github.com/EmilyClaire/Feminist-Toolkits/pull/46#discussion_r72690433","pull_request_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/comments/72690433"},"html":{"href":"https://github.com/EmilyClaire/Feminist-Toolkits/pull/46#discussion_r72690433"},"pull_request":{"href":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/46","id":79217708,"html_url":"https://github.com/EmilyClaire/Feminist-Toolkits/pull/46","diff_url":"https://github.com/EmilyClaire/Feminist-Toolkits/pull/46.diff","patch_url":"https://github.com/EmilyClaire/Feminist-Toolkits/pull/46.patch","issue_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues/46","number":46,"state":"open","locked":false,"title":"Closes #42, closes #43, closes #12","user":{"login":"asundberg","id":17270530,"avatar_url":"https://avatars.githubusercontent.com/u/17270530?v=3","gravatar_id":"","url":"https://api.github.com/users/asundberg","html_url":"https://github.com/asundberg","followers_url":"https://api.github.com/users/asundberg/followers","following_url":"https://api.github.com/users/asundberg/following{/other_user}","gists_url":"https://api.github.com/users/asundberg/gists{/gist_id}","starred_url":"https://api.github.com/users/asundberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asundberg/subscriptions","organizations_url":"https://api.github.com/users/asundberg/orgs","repos_url":"https://api.github.com/users/asundberg/repos","events_url":"https://api.github.com/users/asundberg/events{/privacy}","received_events_url":"https://api.github.com/users/asundberg/received_events","type":"User","site_admin":false},"body":"Closes #42 , closes #43 , closes #12 ","created_at":"2016-07-28T15:32:42Z","updated_at":"2016-07-28T19:52:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3db787b5d1a35db030e695ae0ad66ba2a12234f9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/46/commits","review_comments_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/46/comments","review_comment_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues/46/comments","statuses_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/statuses/49b333268519d10b00234563a3c47638c43e2f48","head":{"label":"EmilyClaire:f/products","ref":"f/products","sha":"49b333268519d10b00234563a3c47638c43e2f48","user":{"login":"EmilyClaire","id":2705141,"avatar_url":"https://avatars.githubusercontent.com/u/2705141?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyClaire","html_url":"https://github.com/EmilyClaire","followers_url":"https://api.github.com/users/EmilyClaire/followers","following_url":"https://api.github.com/users/EmilyClaire/following{/other_user}","gists_url":"https://api.github.com/users/EmilyClaire/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyClaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyClaire/subscriptions","organizations_url":"https://api.github.com/users/EmilyClaire/orgs","repos_url":"https://api.github.com/users/EmilyClaire/repos","events_url":"https://api.github.com/users/EmilyClaire/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyClaire/received_events","type":"User","site_admin":false},"repo":{"id":64144248,"name":"Feminist-Toolkits","full_name":"EmilyClaire/Feminist-Toolkits","owner":{"login":"EmilyClaire","id":2705141,"avatar_url":"https://avatars.githubusercontent.com/u/2705141?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyClaire","html_url":"https://github.com/EmilyClaire","followers_url":"https://api.github.com/users/EmilyClaire/followers","following_url":"https://api.github.com/users/EmilyClaire/following{/other_user}","gists_url":"https://api.github.com/users/EmilyClaire/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyClaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyClaire/subscriptions","organizations_url":"https://api.github.com/users/EmilyClaire/orgs","repos_url":"https://api.github.com/users/EmilyClaire/repos","events_url":"https://api.github.com/users/EmilyClaire/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyClaire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EmilyClaire/Feminist-Toolkits","description":null,"fork":false,"url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits","forks_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/forks","keys_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/teams","hooks_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/hooks","issue_events_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues/events{/number}","events_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/events","assignees_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/assignees{/user}","branches_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/branches{/branch}","tags_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/tags","blobs_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/refs{/sha}","trees_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/statuses/{sha}","languages_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/languages","stargazers_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/stargazers","contributors_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/contributors","subscribers_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/subscribers","subscription_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/subscription","commits_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/commits{/sha}","git_commits_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/commits{/sha}","comments_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/comments{/number}","issue_comment_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues/comments{/number}","contents_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/contents/{+path}","compare_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/merges","archive_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/downloads","issues_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues{/number}","pulls_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls{/number}","milestones_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/milestones{/number}","notifications_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/labels{/name}","releases_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/releases{/id}","deployments_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/deployments","created_at":"2016-07-25T15:03:44Z","updated_at":"2016-07-25T15:04:01Z","pushed_at":"2016-07-28T19:52:37Z","git_url":"git://github.com/EmilyClaire/Feminist-Toolkits.git","ssh_url":"git@github.com:EmilyClaire/Feminist-Toolkits.git","clone_url":"https://github.com/EmilyClaire/Feminist-Toolkits.git","svn_url":"https://github.com/EmilyClaire/Feminist-Toolkits","homepage":null,"size":107,"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":23,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"base":{"label":"EmilyClaire:master","ref":"master","sha":"061a716e6e05c63263750077db45eb80e6d9d12e","user":{"login":"EmilyClaire","id":2705141,"avatar_url":"https://avatars.githubusercontent.com/u/2705141?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyClaire","html_url":"https://github.com/EmilyClaire","followers_url":"https://api.github.com/users/EmilyClaire/followers","following_url":"https://api.github.com/users/EmilyClaire/following{/other_user}","gists_url":"https://api.github.com/users/EmilyClaire/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyClaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyClaire/subscriptions","organizations_url":"https://api.github.com/users/EmilyClaire/orgs","repos_url":"https://api.github.com/users/EmilyClaire/repos","events_url":"https://api.github.com/users/EmilyClaire/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyClaire/received_events","type":"User","site_admin":false},"repo":{"id":64144248,"name":"Feminist-Toolkits","full_name":"EmilyClaire/Feminist-Toolkits","owner":{"login":"EmilyClaire","id":2705141,"avatar_url":"https://avatars.githubusercontent.com/u/2705141?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyClaire","html_url":"https://github.com/EmilyClaire","followers_url":"https://api.github.com/users/EmilyClaire/followers","following_url":"https://api.github.com/users/EmilyClaire/following{/other_user}","gists_url":"https://api.github.com/users/EmilyClaire/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyClaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyClaire/subscriptions","organizations_url":"https://api.github.com/users/EmilyClaire/orgs","repos_url":"https://api.github.com/users/EmilyClaire/repos","events_url":"https://api.github.com/users/EmilyClaire/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyClaire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EmilyClaire/Feminist-Toolkits","description":null,"fork":false,"url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits","forks_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/forks","keys_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/teams","hooks_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/hooks","issue_events_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues/events{/number}","events_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/events","assignees_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/assignees{/user}","branches_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/branches{/branch}","tags_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/tags","blobs_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/refs{/sha}","trees_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/statuses/{sha}","languages_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/languages","stargazers_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/stargazers","contributors_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/contributors","subscribers_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/subscribers","subscription_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/subscription","commits_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/commits{/sha}","git_commits_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/git/commits{/sha}","comments_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/comments{/number}","issue_comment_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues/comments{/number}","contents_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/contents/{+path}","compare_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/merges","archive_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/downloads","issues_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues{/number}","pulls_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls{/number}","milestones_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/milestones{/number}","notifications_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/labels{/name}","releases_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/releases{/id}","deployments_url":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/deployments","created_at":"2016-07-25T15:03:44Z","updated_at":"2016-07-25T15:04:01Z","pushed_at":"2016-07-28T19:52:37Z","git_url":"git://github.com/EmilyClaire/Feminist-Toolkits.git","ssh_url":"git@github.com:EmilyClaire/Feminist-Toolkits.git","clone_url":"https://github.com/EmilyClaire/Feminist-Toolkits.git","svn_url":"https://github.com/EmilyClaire/Feminist-Toolkits","homepage":null,"size":107,"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":23,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/46"},"html":{"href":"https://github.com/EmilyClaire/Feminist-Toolkits/pull/46"},"issue":{"href":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues/46"},"comments":{"href":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/EmilyClaire/Feminist-Toolkits/statuses/49b333268519d10b00234563a3c47638c43e2f48"}}}}
{"actor":{"display_login":"jsonunger"}}