{"action":"created","comment":{"url":"https://api.github.com/repos/cakefuelled/strider-api/pulls/comments/25333516","id":25333516,"diff_hunk":"@@ -0,0 +1,61 @@\n+var log = require('../lib/log.js'),\n+ Item = require('../models/item');\n+\n+/**\n+ * Strider API - Items Router\n+ * @param {Object} Strider Strider main object\n+ */\n+\n+module.exports = function(Strider) {\n+\n+  Strider.app.get('/items', function (req, res, next) {\n+      Item.find(function(err, items) {\n+        if(err) {\n+          res.send(err);\n+          return next();\n+        }\n+\n+        res.send(items);\n+        return next();\n+      });\n+  });\n+\n+  Strider.app.post('/items', function (req, res, next) {\n+    var item = new Item(req.body);\n+    \n+    console.log('About to save');","path":"app/routes/items.js","position":26,"original_position":26,"commit_id":"47e5939ed5356ff321fb922ebfdfc815290ce8ef","original_commit_id":"47e5939ed5356ff321fb922ebfdfc815290ce8ef","user":{"login":"aurbano","id":2827818,"avatar_url":"https://avatars.githubusercontent.com/u/2827818?v=3","gravatar_id":"","url":"https://api.github.com/users/aurbano","html_url":"https://github.com/aurbano","followers_url":"https://api.github.com/users/aurbano/followers","following_url":"https://api.github.com/users/aurbano/following{/other_user}","gists_url":"https://api.github.com/users/aurbano/gists{/gist_id}","starred_url":"https://api.github.com/users/aurbano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurbano/subscriptions","organizations_url":"https://api.github.com/users/aurbano/orgs","repos_url":"https://api.github.com/users/aurbano/repos","events_url":"https://api.github.com/users/aurbano/events{/privacy}","received_events_url":"https://api.github.com/users/aurbano/received_events","type":"User","site_admin":false},"body":"Non dev debug messages should use winston: log.debug(...) (see the first require) so that they are properly logged.\r\n\r\nconsole.log() should just be removed when pushing then :)","created_at":"2015-02-25T11:32:46Z","updated_at":"2015-02-25T11:32:46Z","html_url":"https://github.com/cakefuelled/strider-api/pull/6#discussion_r25333516","pull_request_url":"https://api.github.com/repos/cakefuelled/strider-api/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/cakefuelled/strider-api/pulls/comments/25333516"},"html":{"href":"https://github.com/cakefuelled/strider-api/pull/6#discussion_r25333516"},"pull_request":{"href":"https://api.github.com/repos/cakefuelled/strider-api/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/cakefuelled/strider-api/pulls/6","id":29847075,"html_url":"https://github.com/cakefuelled/strider-api/pull/6","diff_url":"https://github.com/cakefuelled/strider-api/pull/6.diff","patch_url":"https://github.com/cakefuelled/strider-api/pull/6.patch","issue_url":"https://api.github.com/repos/cakefuelled/strider-api/issues/6","number":6,"state":"open","locked":false,"title":"Items CRUD","user":{"login":"reddyalready","id":7541378,"avatar_url":"https://avatars.githubusercontent.com/u/7541378?v=3","gravatar_id":"","url":"https://api.github.com/users/reddyalready","html_url":"https://github.com/reddyalready","followers_url":"https://api.github.com/users/reddyalready/followers","following_url":"https://api.github.com/users/reddyalready/following{/other_user}","gists_url":"https://api.github.com/users/reddyalready/gists{/gist_id}","starred_url":"https://api.github.com/users/reddyalready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddyalready/subscriptions","organizations_url":"https://api.github.com/users/reddyalready/orgs","repos_url":"https://api.github.com/users/reddyalready/repos","events_url":"https://api.github.com/users/reddyalready/events{/privacy}","received_events_url":"https://api.github.com/users/reddyalready/received_events","type":"User","site_admin":false},"body":"Resolves #4 ","created_at":"2015-02-23T21:27:38Z","updated_at":"2015-02-25T11:32:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9c157c052a1d4b475e2ab02f8d8b48b87456f96","assignee":null,"milestone":{"url":"https://api.github.com/repos/cakefuelled/strider-api/milestones/1","html_url":"https://github.com/cakefuelled/strider-api/milestones/Release%201.0.0","labels_url":"https://api.github.com/repos/cakefuelled/strider-api/milestones/1/labels","id":981719,"number":1,"title":"Release 1.0.0","description":"Initial release with at least the basic functionality added to the API","creator":{"login":"aurbano","id":2827818,"avatar_url":"https://avatars.githubusercontent.com/u/2827818?v=3","gravatar_id":"","url":"https://api.github.com/users/aurbano","html_url":"https://github.com/aurbano","followers_url":"https://api.github.com/users/aurbano/followers","following_url":"https://api.github.com/users/aurbano/following{/other_user}","gists_url":"https://api.github.com/users/aurbano/gists{/gist_id}","starred_url":"https://api.github.com/users/aurbano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurbano/subscriptions","organizations_url":"https://api.github.com/users/aurbano/orgs","repos_url":"https://api.github.com/users/aurbano/repos","events_url":"https://api.github.com/users/aurbano/events{/privacy}","received_events_url":"https://api.github.com/users/aurbano/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-02-16T18:16:03Z","updated_at":"2015-02-23T21:33:03Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/cakefuelled/strider-api/pulls/6/commits","review_comments_url":"https://api.github.com/repos/cakefuelled/strider-api/pulls/6/comments","review_comment_url":"https://api.github.com/repos/cakefuelled/strider-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakefuelled/strider-api/issues/6/comments","statuses_url":"https://api.github.com/repos/cakefuelled/strider-api/statuses/47e5939ed5356ff321fb922ebfdfc815290ce8ef","head":{"label":"cakefuelled:features/items-crud","ref":"features/items-crud","sha":"47e5939ed5356ff321fb922ebfdfc815290ce8ef","user":{"login":"cakefuelled","id":10168397,"avatar_url":"https://avatars.githubusercontent.com/u/10168397?v=3","gravatar_id":"","url":"https://api.github.com/users/cakefuelled","html_url":"https://github.com/cakefuelled","followers_url":"https://api.github.com/users/cakefuelled/followers","following_url":"https://api.github.com/users/cakefuelled/following{/other_user}","gists_url":"https://api.github.com/users/cakefuelled/gists{/gist_id}","starred_url":"https://api.github.com/users/cakefuelled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakefuelled/subscriptions","organizations_url":"https://api.github.com/users/cakefuelled/orgs","repos_url":"https://api.github.com/users/cakefuelled/repos","events_url":"https://api.github.com/users/cakefuelled/events{/privacy}","received_events_url":"https://api.github.com/users/cakefuelled/received_events","type":"Organization","site_admin":false},"repo":{"id":30863765,"name":"strider-api","full_name":"cakefuelled/strider-api","owner":{"login":"cakefuelled","id":10168397,"avatar_url":"https://avatars.githubusercontent.com/u/10168397?v=3","gravatar_id":"","url":"https://api.github.com/users/cakefuelled","html_url":"https://github.com/cakefuelled","followers_url":"https://api.github.com/users/cakefuelled/followers","following_url":"https://api.github.com/users/cakefuelled/following{/other_user}","gists_url":"https://api.github.com/users/cakefuelled/gists{/gist_id}","starred_url":"https://api.github.com/users/cakefuelled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakefuelled/subscriptions","organizations_url":"https://api.github.com/users/cakefuelled/orgs","repos_url":"https://api.github.com/users/cakefuelled/repos","events_url":"https://api.github.com/users/cakefuelled/events{/privacy}","received_events_url":"https://api.github.com/users/cakefuelled/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakefuelled/strider-api","description":"Inventory management done right","fork":false,"url":"https://api.github.com/repos/cakefuelled/strider-api","forks_url":"https://api.github.com/repos/cakefuelled/strider-api/forks","keys_url":"https://api.github.com/repos/cakefuelled/strider-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakefuelled/strider-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakefuelled/strider-api/teams","hooks_url":"https://api.github.com/repos/cakefuelled/strider-api/hooks","issue_events_url":"https://api.github.com/repos/cakefuelled/strider-api/issues/events{/number}","events_url":"https://api.github.com/repos/cakefuelled/strider-api/events","assignees_url":"https://api.github.com/repos/cakefuelled/strider-api/assignees{/user}","branches_url":"https://api.github.com/repos/cakefuelled/strider-api/branches{/branch}","tags_url":"https://api.github.com/repos/cakefuelled/strider-api/tags","blobs_url":"https://api.github.com/repos/cakefuelled/strider-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakefuelled/strider-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakefuelled/strider-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakefuelled/strider-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakefuelled/strider-api/statuses/{sha}","languages_url":"https://api.github.com/repos/cakefuelled/strider-api/languages","stargazers_url":"https://api.github.com/repos/cakefuelled/strider-api/stargazers","contributors_url":"https://api.github.com/repos/cakefuelled/strider-api/contributors","subscribers_url":"https://api.github.com/repos/cakefuelled/strider-api/subscribers","subscription_url":"https://api.github.com/repos/cakefuelled/strider-api/subscription","commits_url":"https://api.github.com/repos/cakefuelled/strider-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakefuelled/strider-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakefuelled/strider-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakefuelled/strider-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakefuelled/strider-api/contents/{+path}","compare_url":"https://api.github.com/repos/cakefuelled/strider-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakefuelled/strider-api/merges","archive_url":"https://api.github.com/repos/cakefuelled/strider-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakefuelled/strider-api/downloads","issues_url":"https://api.github.com/repos/cakefuelled/strider-api/issues{/number}","pulls_url":"https://api.github.com/repos/cakefuelled/strider-api/pulls{/number}","milestones_url":"https://api.github.com/repos/cakefuelled/strider-api/milestones{/number}","notifications_url":"https://api.github.com/repos/cakefuelled/strider-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakefuelled/strider-api/labels{/name}","releases_url":"https://api.github.com/repos/cakefuelled/strider-api/releases{/id}","created_at":"2015-02-16T10:39:32Z","updated_at":"2015-02-22T22:49:32Z","pushed_at":"2015-02-23T21:21:15Z","git_url":"git://github.com/cakefuelled/strider-api.git","ssh_url":"git@github.com:cakefuelled/strider-api.git","clone_url":"https://github.com/cakefuelled/strider-api.git","svn_url":"https://github.com/cakefuelled/strider-api","homepage":"http://getstrider.com","size":216,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"cakefuelled:develop","ref":"develop","sha":"fe899560cf42f94de983dcd5cfa96d9e9fffbf93","user":{"login":"cakefuelled","id":10168397,"avatar_url":"https://avatars.githubusercontent.com/u/10168397?v=3","gravatar_id":"","url":"https://api.github.com/users/cakefuelled","html_url":"https://github.com/cakefuelled","followers_url":"https://api.github.com/users/cakefuelled/followers","following_url":"https://api.github.com/users/cakefuelled/following{/other_user}","gists_url":"https://api.github.com/users/cakefuelled/gists{/gist_id}","starred_url":"https://api.github.com/users/cakefuelled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakefuelled/subscriptions","organizations_url":"https://api.github.com/users/cakefuelled/orgs","repos_url":"https://api.github.com/users/cakefuelled/repos","events_url":"https://api.github.com/users/cakefuelled/events{/privacy}","received_events_url":"https://api.github.com/users/cakefuelled/received_events","type":"Organization","site_admin":false},"repo":{"id":30863765,"name":"strider-api","full_name":"cakefuelled/strider-api","owner":{"login":"cakefuelled","id":10168397,"avatar_url":"https://avatars.githubusercontent.com/u/10168397?v=3","gravatar_id":"","url":"https://api.github.com/users/cakefuelled","html_url":"https://github.com/cakefuelled","followers_url":"https://api.github.com/users/cakefuelled/followers","following_url":"https://api.github.com/users/cakefuelled/following{/other_user}","gists_url":"https://api.github.com/users/cakefuelled/gists{/gist_id}","starred_url":"https://api.github.com/users/cakefuelled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakefuelled/subscriptions","organizations_url":"https://api.github.com/users/cakefuelled/orgs","repos_url":"https://api.github.com/users/cakefuelled/repos","events_url":"https://api.github.com/users/cakefuelled/events{/privacy}","received_events_url":"https://api.github.com/users/cakefuelled/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakefuelled/strider-api","description":"Inventory management done right","fork":false,"url":"https://api.github.com/repos/cakefuelled/strider-api","forks_url":"https://api.github.com/repos/cakefuelled/strider-api/forks","keys_url":"https://api.github.com/repos/cakefuelled/strider-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakefuelled/strider-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakefuelled/strider-api/teams","hooks_url":"https://api.github.com/repos/cakefuelled/strider-api/hooks","issue_events_url":"https://api.github.com/repos/cakefuelled/strider-api/issues/events{/number}","events_url":"https://api.github.com/repos/cakefuelled/strider-api/events","assignees_url":"https://api.github.com/repos/cakefuelled/strider-api/assignees{/user}","branches_url":"https://api.github.com/repos/cakefuelled/strider-api/branches{/branch}","tags_url":"https://api.github.com/repos/cakefuelled/strider-api/tags","blobs_url":"https://api.github.com/repos/cakefuelled/strider-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakefuelled/strider-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakefuelled/strider-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakefuelled/strider-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakefuelled/strider-api/statuses/{sha}","languages_url":"https://api.github.com/repos/cakefuelled/strider-api/languages","stargazers_url":"https://api.github.com/repos/cakefuelled/strider-api/stargazers","contributors_url":"https://api.github.com/repos/cakefuelled/strider-api/contributors","subscribers_url":"https://api.github.com/repos/cakefuelled/strider-api/subscribers","subscription_url":"https://api.github.com/repos/cakefuelled/strider-api/subscription","commits_url":"https://api.github.com/repos/cakefuelled/strider-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakefuelled/strider-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakefuelled/strider-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakefuelled/strider-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakefuelled/strider-api/contents/{+path}","compare_url":"https://api.github.com/repos/cakefuelled/strider-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakefuelled/strider-api/merges","archive_url":"https://api.github.com/repos/cakefuelled/strider-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakefuelled/strider-api/downloads","issues_url":"https://api.github.com/repos/cakefuelled/strider-api/issues{/number}","pulls_url":"https://api.github.com/repos/cakefuelled/strider-api/pulls{/number}","milestones_url":"https://api.github.com/repos/cakefuelled/strider-api/milestones{/number}","notifications_url":"https://api.github.com/repos/cakefuelled/strider-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakefuelled/strider-api/labels{/name}","releases_url":"https://api.github.com/repos/cakefuelled/strider-api/releases{/id}","created_at":"2015-02-16T10:39:32Z","updated_at":"2015-02-22T22:49:32Z","pushed_at":"2015-02-23T21:21:15Z","git_url":"git://github.com/cakefuelled/strider-api.git","ssh_url":"git@github.com:cakefuelled/strider-api.git","clone_url":"https://github.com/cakefuelled/strider-api.git","svn_url":"https://github.com/cakefuelled/strider-api","homepage":"http://getstrider.com","size":216,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakefuelled/strider-api/pulls/6"},"html":{"href":"https://github.com/cakefuelled/strider-api/pull/6"},"issue":{"href":"https://api.github.com/repos/cakefuelled/strider-api/issues/6"},"comments":{"href":"https://api.github.com/repos/cakefuelled/strider-api/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/cakefuelled/strider-api/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/cakefuelled/strider-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakefuelled/strider-api/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/cakefuelled/strider-api/statuses/47e5939ed5356ff321fb922ebfdfc815290ce8ef"}}}}