{"action":"created","comment":{"url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments/33988227","id":33988227,"diff_hunk":"@@ -146,6 +146,7 @@ module.exports.routes = {\n   'GET    /noo/logout':                                   'SessionController.destroy',\n \n   'POST    /noo/pn/add-device':                           'PushNotificationController.addDevice',\n+  'POST    /noo/pn/disable-device':                       'PushNotificationController.disableDevice',  ","path":"config/routes.js","position":4,"original_position":4,"commit_id":"928b8fac7013704ff95b8bb64aa91f6f32bdb4a2","original_commit_id":"928b8fac7013704ff95b8bb64aa91f6f32bdb4a2","user":{"login":"levity","id":193667,"avatar_url":"https://avatars.githubusercontent.com/u/193667?v=3","gravatar_id":"","url":"https://api.github.com/users/levity","html_url":"https://github.com/levity","followers_url":"https://api.github.com/users/levity/followers","following_url":"https://api.github.com/users/levity/following{/other_user}","gists_url":"https://api.github.com/users/levity/gists{/gist_id}","starred_url":"https://api.github.com/users/levity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levity/subscriptions","organizations_url":"https://api.github.com/users/levity/orgs","repos_url":"https://api.github.com/users/levity/repos","events_url":"https://api.github.com/users/levity/events{/privacy}","received_events_url":"https://api.github.com/users/levity/received_events","type":"User","site_admin":false},"body":"By convention, the id (in this case the token) is only present in the URL\nif you're updating an existing record. it doesn't mean you can't still pass\nthe token in as a query parameter or POST body parameter.\n\nOn Mon, Jul 6, 2015 at 2:51 PM, Robbie Carlton <notifications@github.com>\nwrote:\n\n> In config/routes.js\n> <https://github.com/Hylozoic/hylo-node/pull/29#discussion_r33986811>:\n>\n> > @@ -146,6 +146,7 @@ module.exports.routes = {\n> >    'GET    /noo/logout':                                   'SessionController.destroy',\n> >\n> >    'POST    /noo/pn/add-device':                           'PushNotificationController.addDevice',\n> > +  'POST    /noo/pn/disable-device':                       'PushNotificationController.disableDevice',\n>\n> cool, so would it work if it were\n> POST /noo/device/:token => DeviceController.create\n> and\n> DELETE /noo/device/:token => DeviceController.destroy\n> as the create method needs the token as well?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Hylozoic/hylo-node/pull/29/files#r33986811>.\n>\n","created_at":"2015-07-06T22:08:28Z","updated_at":"2015-07-06T22:08:28Z","html_url":"https://github.com/Hylozoic/hylo-node/pull/29#discussion_r33988227","pull_request_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments/33988227"},"html":{"href":"https://github.com/Hylozoic/hylo-node/pull/29#discussion_r33988227"},"pull_request":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/29","id":39309678,"html_url":"https://github.com/Hylozoic/hylo-node/pull/29","diff_url":"https://github.com/Hylozoic/hylo-node/pull/29.diff","patch_url":"https://github.com/Hylozoic/hylo-node/pull/29.patch","issue_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/29","number":29,"state":"open","locked":false,"title":"Disabledevice","user":{"login":"robbiecarlton","id":891124,"avatar_url":"https://avatars.githubusercontent.com/u/891124?v=3","gravatar_id":"","url":"https://api.github.com/users/robbiecarlton","html_url":"https://github.com/robbiecarlton","followers_url":"https://api.github.com/users/robbiecarlton/followers","following_url":"https://api.github.com/users/robbiecarlton/following{/other_user}","gists_url":"https://api.github.com/users/robbiecarlton/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiecarlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiecarlton/subscriptions","organizations_url":"https://api.github.com/users/robbiecarlton/orgs","repos_url":"https://api.github.com/users/robbiecarlton/repos","events_url":"https://api.github.com/users/robbiecarlton/events{/privacy}","received_events_url":"https://api.github.com/users/robbiecarlton/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-06T20:54:41Z","updated_at":"2015-07-06T22:08:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53eed557658b8b7ec88a91c44942385e1dfe8032","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/29/commits","review_comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/29/comments","review_comment_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/29/comments","statuses_url":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/928b8fac7013704ff95b8bb64aa91f6f32bdb4a2","head":{"label":"Hylozoic:disabledevice","ref":"disabledevice","sha":"928b8fac7013704ff95b8bb64aa91f6f32bdb4a2","user":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"repo":{"id":25898898,"name":"hylo-node","full_name":"Hylozoic/hylo-node","owner":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Hylozoic/hylo-node","description":"The Hylo API.","fork":false,"url":"https://api.github.com/repos/Hylozoic/hylo-node","forks_url":"https://api.github.com/repos/Hylozoic/hylo-node/forks","keys_url":"https://api.github.com/repos/Hylozoic/hylo-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hylozoic/hylo-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hylozoic/hylo-node/teams","hooks_url":"https://api.github.com/repos/Hylozoic/hylo-node/hooks","issue_events_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/events{/number}","events_url":"https://api.github.com/repos/Hylozoic/hylo-node/events","assignees_url":"https://api.github.com/repos/Hylozoic/hylo-node/assignees{/user}","branches_url":"https://api.github.com/repos/Hylozoic/hylo-node/branches{/branch}","tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/tags","blobs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Hylozoic/hylo-node/languages","stargazers_url":"https://api.github.com/repos/Hylozoic/hylo-node/stargazers","contributors_url":"https://api.github.com/repos/Hylozoic/hylo-node/contributors","subscribers_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscribers","subscription_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscription","commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hylozoic/hylo-node/contents/{+path}","compare_url":"https://api.github.com/repos/Hylozoic/hylo-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hylozoic/hylo-node/merges","archive_url":"https://api.github.com/repos/Hylozoic/hylo-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hylozoic/hylo-node/downloads","issues_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues{/number}","pulls_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Hylozoic/hylo-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Hylozoic/hylo-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hylozoic/hylo-node/labels{/name}","releases_url":"https://api.github.com/repos/Hylozoic/hylo-node/releases{/id}","created_at":"2014-10-29T01:39:40Z","updated_at":"2015-06-04T18:31:43Z","pushed_at":"2015-07-06T20:54:41Z","git_url":"git://github.com/Hylozoic/hylo-node.git","ssh_url":"git@github.com:Hylozoic/hylo-node.git","clone_url":"https://github.com/Hylozoic/hylo-node.git","svn_url":"https://github.com/Hylozoic/hylo-node","homepage":"https://www.hylo.com/","size":2448,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"Hylozoic:master","ref":"master","sha":"04b8821d2763ff8fd220b90a23e862767c980869","user":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"repo":{"id":25898898,"name":"hylo-node","full_name":"Hylozoic/hylo-node","owner":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Hylozoic/hylo-node","description":"The Hylo API.","fork":false,"url":"https://api.github.com/repos/Hylozoic/hylo-node","forks_url":"https://api.github.com/repos/Hylozoic/hylo-node/forks","keys_url":"https://api.github.com/repos/Hylozoic/hylo-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hylozoic/hylo-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hylozoic/hylo-node/teams","hooks_url":"https://api.github.com/repos/Hylozoic/hylo-node/hooks","issue_events_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/events{/number}","events_url":"https://api.github.com/repos/Hylozoic/hylo-node/events","assignees_url":"https://api.github.com/repos/Hylozoic/hylo-node/assignees{/user}","branches_url":"https://api.github.com/repos/Hylozoic/hylo-node/branches{/branch}","tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/tags","blobs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Hylozoic/hylo-node/languages","stargazers_url":"https://api.github.com/repos/Hylozoic/hylo-node/stargazers","contributors_url":"https://api.github.com/repos/Hylozoic/hylo-node/contributors","subscribers_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscribers","subscription_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscription","commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hylozoic/hylo-node/contents/{+path}","compare_url":"https://api.github.com/repos/Hylozoic/hylo-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hylozoic/hylo-node/merges","archive_url":"https://api.github.com/repos/Hylozoic/hylo-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hylozoic/hylo-node/downloads","issues_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues{/number}","pulls_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Hylozoic/hylo-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Hylozoic/hylo-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hylozoic/hylo-node/labels{/name}","releases_url":"https://api.github.com/repos/Hylozoic/hylo-node/releases{/id}","created_at":"2014-10-29T01:39:40Z","updated_at":"2015-06-04T18:31:43Z","pushed_at":"2015-07-06T20:54:41Z","git_url":"git://github.com/Hylozoic/hylo-node.git","ssh_url":"git@github.com:Hylozoic/hylo-node.git","clone_url":"https://github.com/Hylozoic/hylo-node.git","svn_url":"https://github.com/Hylozoic/hylo-node","homepage":"https://www.hylo.com/","size":2448,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/29"},"html":{"href":"https://github.com/Hylozoic/hylo-node/pull/29"},"issue":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/issues/29"},"comments":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/928b8fac7013704ff95b8bb64aa91f6f32bdb4a2"}}}}