{"action":"created","comment":{"url":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/comments/173703036","pull_request_review_id":102933336,"id":173703036,"diff_hunk":"@@ -18,6 +18,10 @@\n   get 'users/privacy_policy', to: 'users#privacy_policy'\n   get 'users/terms_of_service', to: 'users#terms_of_service'\n \n+# like機能用\n+  post '/like/:article_id', to: 'likes#like', as: 'like'","path":"config/routes.rb","position":5,"original_position":5,"commit_id":"8d3b2d7d482c63ca1b44e5f55ead646b313472b1","original_commit_id":"8d3b2d7d482c63ca1b44e5f55ead646b313472b1","user":{"login":"ta910","id":21980655,"avatar_url":"https://avatars0.githubusercontent.com/u/21980655?v=4","gravatar_id":"","url":"https://api.github.com/users/ta910","html_url":"https://github.com/ta910","followers_url":"https://api.github.com/users/ta910/followers","following_url":"https://api.github.com/users/ta910/following{/other_user}","gists_url":"https://api.github.com/users/ta910/gists{/gist_id}","starred_url":"https://api.github.com/users/ta910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta910/subscriptions","organizations_url":"https://api.github.com/users/ta910/orgs","repos_url":"https://api.github.com/users/ta910/repos","events_url":"https://api.github.com/users/ta910/events{/privacy}","received_events_url":"https://api.github.com/users/ta910/received_events","type":"User","site_admin":false},"body":"likesの方が良いですね\r\nnamespaceやcollection、memberなどを用いてルーティングをネスト化させるとより設計がわかりやすくなります。","created_at":"2018-03-12T06:35:33Z","updated_at":"2018-03-12T06:35:33Z","html_url":"https://github.com/sagojo-team-b/sagojo/pull/16#discussion_r173703036","pull_request_url":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/16","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/comments/173703036"},"html":{"href":"https://github.com/sagojo-team-b/sagojo/pull/16#discussion_r173703036"},"pull_request":{"href":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/16","id":174168696,"html_url":"https://github.com/sagojo-team-b/sagojo/pull/16","diff_url":"https://github.com/sagojo-team-b/sagojo/pull/16.diff","patch_url":"https://github.com/sagojo-team-b/sagojo/pull/16.patch","issue_url":"https://api.github.com/repos/sagojo-team-b/sagojo/issues/16","number":16,"state":"open","locked":false,"title":"Likes","user":{"login":"naoki-shina","id":35371216,"avatar_url":"https://avatars2.githubusercontent.com/u/35371216?v=4","gravatar_id":"","url":"https://api.github.com/users/naoki-shina","html_url":"https://github.com/naoki-shina","followers_url":"https://api.github.com/users/naoki-shina/followers","following_url":"https://api.github.com/users/naoki-shina/following{/other_user}","gists_url":"https://api.github.com/users/naoki-shina/gists{/gist_id}","starred_url":"https://api.github.com/users/naoki-shina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoki-shina/subscriptions","organizations_url":"https://api.github.com/users/naoki-shina/orgs","repos_url":"https://api.github.com/users/naoki-shina/repos","events_url":"https://api.github.com/users/naoki-shina/events{/privacy}","received_events_url":"https://api.github.com/users/naoki-shina/received_events","type":"User","site_admin":false},"body":"# What\r\ncreate favorite function for articles\r\n# Why\r\nit is useful for management your favorite articles\r\n# detail\r\n![sample7](https://user-images.githubusercontent.com/35371216/37268654-55bd03ca-260a-11e8-962c-e709cb1f1f59.gif)\r\n","created_at":"2018-03-10T12:42:18Z","updated_at":"2018-03-12T06:35:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5855329824ad5a237103514032bafd549396ab7b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/16/commits","review_comments_url":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/16/comments","review_comment_url":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sagojo-team-b/sagojo/issues/16/comments","statuses_url":"https://api.github.com/repos/sagojo-team-b/sagojo/statuses/8d3b2d7d482c63ca1b44e5f55ead646b313472b1","head":{"label":"sagojo-team-b:likes","ref":"likes","sha":"8d3b2d7d482c63ca1b44e5f55ead646b313472b1","user":{"login":"sagojo-team-b","id":36615927,"avatar_url":"https://avatars3.githubusercontent.com/u/36615927?v=4","gravatar_id":"","url":"https://api.github.com/users/sagojo-team-b","html_url":"https://github.com/sagojo-team-b","followers_url":"https://api.github.com/users/sagojo-team-b/followers","following_url":"https://api.github.com/users/sagojo-team-b/following{/other_user}","gists_url":"https://api.github.com/users/sagojo-team-b/gists{/gist_id}","starred_url":"https://api.github.com/users/sagojo-team-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagojo-team-b/subscriptions","organizations_url":"https://api.github.com/users/sagojo-team-b/orgs","repos_url":"https://api.github.com/users/sagojo-team-b/repos","events_url":"https://api.github.com/users/sagojo-team-b/events{/privacy}","received_events_url":"https://api.github.com/users/sagojo-team-b/received_events","type":"Organization","site_admin":false},"repo":{"id":122021415,"name":"sagojo","full_name":"sagojo-team-b/sagojo","owner":{"login":"sagojo-team-b","id":36615927,"avatar_url":"https://avatars3.githubusercontent.com/u/36615927?v=4","gravatar_id":"","url":"https://api.github.com/users/sagojo-team-b","html_url":"https://github.com/sagojo-team-b","followers_url":"https://api.github.com/users/sagojo-team-b/followers","following_url":"https://api.github.com/users/sagojo-team-b/following{/other_user}","gists_url":"https://api.github.com/users/sagojo-team-b/gists{/gist_id}","starred_url":"https://api.github.com/users/sagojo-team-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagojo-team-b/subscriptions","organizations_url":"https://api.github.com/users/sagojo-team-b/orgs","repos_url":"https://api.github.com/users/sagojo-team-b/repos","events_url":"https://api.github.com/users/sagojo-team-b/events{/privacy}","received_events_url":"https://api.github.com/users/sagojo-team-b/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sagojo-team-b/sagojo","description":"let's make sagojo!","fork":false,"url":"https://api.github.com/repos/sagojo-team-b/sagojo","forks_url":"https://api.github.com/repos/sagojo-team-b/sagojo/forks","keys_url":"https://api.github.com/repos/sagojo-team-b/sagojo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagojo-team-b/sagojo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagojo-team-b/sagojo/teams","hooks_url":"https://api.github.com/repos/sagojo-team-b/sagojo/hooks","issue_events_url":"https://api.github.com/repos/sagojo-team-b/sagojo/issues/events{/number}","events_url":"https://api.github.com/repos/sagojo-team-b/sagojo/events","assignees_url":"https://api.github.com/repos/sagojo-team-b/sagojo/assignees{/user}","branches_url":"https://api.github.com/repos/sagojo-team-b/sagojo/branches{/branch}","tags_url":"https://api.github.com/repos/sagojo-team-b/sagojo/tags","blobs_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagojo-team-b/sagojo/statuses/{sha}","languages_url":"https://api.github.com/repos/sagojo-team-b/sagojo/languages","stargazers_url":"https://api.github.com/repos/sagojo-team-b/sagojo/stargazers","contributors_url":"https://api.github.com/repos/sagojo-team-b/sagojo/contributors","subscribers_url":"https://api.github.com/repos/sagojo-team-b/sagojo/subscribers","subscription_url":"https://api.github.com/repos/sagojo-team-b/sagojo/subscription","commits_url":"https://api.github.com/repos/sagojo-team-b/sagojo/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagojo-team-b/sagojo/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagojo-team-b/sagojo/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagojo-team-b/sagojo/contents/{+path}","compare_url":"https://api.github.com/repos/sagojo-team-b/sagojo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagojo-team-b/sagojo/merges","archive_url":"https://api.github.com/repos/sagojo-team-b/sagojo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagojo-team-b/sagojo/downloads","issues_url":"https://api.github.com/repos/sagojo-team-b/sagojo/issues{/number}","pulls_url":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls{/number}","milestones_url":"https://api.github.com/repos/sagojo-team-b/sagojo/milestones{/number}","notifications_url":"https://api.github.com/repos/sagojo-team-b/sagojo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagojo-team-b/sagojo/labels{/name}","releases_url":"https://api.github.com/repos/sagojo-team-b/sagojo/releases{/id}","deployments_url":"https://api.github.com/repos/sagojo-team-b/sagojo/deployments","created_at":"2018-02-19T05:07:36Z","updated_at":"2018-03-01T01:30:00Z","pushed_at":"2018-03-12T06:34:03Z","git_url":"git://github.com/sagojo-team-b/sagojo.git","ssh_url":"git@github.com:sagojo-team-b/sagojo.git","clone_url":"https://github.com/sagojo-team-b/sagojo.git","svn_url":"https://github.com/sagojo-team-b/sagojo","homepage":null,"size":316,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"sagojo-team-b:master","ref":"master","sha":"b955072249e8e3d84830ad03a08310d5c8e3b188","user":{"login":"sagojo-team-b","id":36615927,"avatar_url":"https://avatars3.githubusercontent.com/u/36615927?v=4","gravatar_id":"","url":"https://api.github.com/users/sagojo-team-b","html_url":"https://github.com/sagojo-team-b","followers_url":"https://api.github.com/users/sagojo-team-b/followers","following_url":"https://api.github.com/users/sagojo-team-b/following{/other_user}","gists_url":"https://api.github.com/users/sagojo-team-b/gists{/gist_id}","starred_url":"https://api.github.com/users/sagojo-team-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagojo-team-b/subscriptions","organizations_url":"https://api.github.com/users/sagojo-team-b/orgs","repos_url":"https://api.github.com/users/sagojo-team-b/repos","events_url":"https://api.github.com/users/sagojo-team-b/events{/privacy}","received_events_url":"https://api.github.com/users/sagojo-team-b/received_events","type":"Organization","site_admin":false},"repo":{"id":122021415,"name":"sagojo","full_name":"sagojo-team-b/sagojo","owner":{"login":"sagojo-team-b","id":36615927,"avatar_url":"https://avatars3.githubusercontent.com/u/36615927?v=4","gravatar_id":"","url":"https://api.github.com/users/sagojo-team-b","html_url":"https://github.com/sagojo-team-b","followers_url":"https://api.github.com/users/sagojo-team-b/followers","following_url":"https://api.github.com/users/sagojo-team-b/following{/other_user}","gists_url":"https://api.github.com/users/sagojo-team-b/gists{/gist_id}","starred_url":"https://api.github.com/users/sagojo-team-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagojo-team-b/subscriptions","organizations_url":"https://api.github.com/users/sagojo-team-b/orgs","repos_url":"https://api.github.com/users/sagojo-team-b/repos","events_url":"https://api.github.com/users/sagojo-team-b/events{/privacy}","received_events_url":"https://api.github.com/users/sagojo-team-b/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sagojo-team-b/sagojo","description":"let's make sagojo!","fork":false,"url":"https://api.github.com/repos/sagojo-team-b/sagojo","forks_url":"https://api.github.com/repos/sagojo-team-b/sagojo/forks","keys_url":"https://api.github.com/repos/sagojo-team-b/sagojo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagojo-team-b/sagojo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagojo-team-b/sagojo/teams","hooks_url":"https://api.github.com/repos/sagojo-team-b/sagojo/hooks","issue_events_url":"https://api.github.com/repos/sagojo-team-b/sagojo/issues/events{/number}","events_url":"https://api.github.com/repos/sagojo-team-b/sagojo/events","assignees_url":"https://api.github.com/repos/sagojo-team-b/sagojo/assignees{/user}","branches_url":"https://api.github.com/repos/sagojo-team-b/sagojo/branches{/branch}","tags_url":"https://api.github.com/repos/sagojo-team-b/sagojo/tags","blobs_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagojo-team-b/sagojo/statuses/{sha}","languages_url":"https://api.github.com/repos/sagojo-team-b/sagojo/languages","stargazers_url":"https://api.github.com/repos/sagojo-team-b/sagojo/stargazers","contributors_url":"https://api.github.com/repos/sagojo-team-b/sagojo/contributors","subscribers_url":"https://api.github.com/repos/sagojo-team-b/sagojo/subscribers","subscription_url":"https://api.github.com/repos/sagojo-team-b/sagojo/subscription","commits_url":"https://api.github.com/repos/sagojo-team-b/sagojo/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagojo-team-b/sagojo/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagojo-team-b/sagojo/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagojo-team-b/sagojo/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagojo-team-b/sagojo/contents/{+path}","compare_url":"https://api.github.com/repos/sagojo-team-b/sagojo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagojo-team-b/sagojo/merges","archive_url":"https://api.github.com/repos/sagojo-team-b/sagojo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagojo-team-b/sagojo/downloads","issues_url":"https://api.github.com/repos/sagojo-team-b/sagojo/issues{/number}","pulls_url":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls{/number}","milestones_url":"https://api.github.com/repos/sagojo-team-b/sagojo/milestones{/number}","notifications_url":"https://api.github.com/repos/sagojo-team-b/sagojo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagojo-team-b/sagojo/labels{/name}","releases_url":"https://api.github.com/repos/sagojo-team-b/sagojo/releases{/id}","deployments_url":"https://api.github.com/repos/sagojo-team-b/sagojo/deployments","created_at":"2018-02-19T05:07:36Z","updated_at":"2018-03-01T01:30:00Z","pushed_at":"2018-03-12T06:34:03Z","git_url":"git://github.com/sagojo-team-b/sagojo.git","ssh_url":"git@github.com:sagojo-team-b/sagojo.git","clone_url":"https://github.com/sagojo-team-b/sagojo.git","svn_url":"https://github.com/sagojo-team-b/sagojo","homepage":null,"size":316,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/16"},"html":{"href":"https://github.com/sagojo-team-b/sagojo/pull/16"},"issue":{"href":"https://api.github.com/repos/sagojo-team-b/sagojo/issues/16"},"comments":{"href":"https://api.github.com/repos/sagojo-team-b/sagojo/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sagojo-team-b/sagojo/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/sagojo-team-b/sagojo/statuses/8d3b2d7d482c63ca1b44e5f55ead646b313472b1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ta910"}}