{"action":"created","comment":{"url":"https://api.github.com/repos/intercity/intercity-next/pulls/comments/48936694","id":48936694,"diff_hunk":"@@ -12,6 +12,9 @@\n   post \"login\" => \"sessions#create\"\n   delete \"logout\" => \"sessions#destroy\", as: \"logout\"\n \n+  resources :users, only: [:index, :create]","path":"config/routes.rb","position":4,"original_position":4,"commit_id":"e04b46e5b053feea4edea2bddd00d82a50ef1a93","original_commit_id":"e04b46e5b053feea4edea2bddd00d82a50ef1a93","user":{"login":"jvanbaarsen","id":1362793,"avatar_url":"https://avatars.githubusercontent.com/u/1362793?v=3","gravatar_id":"","url":"https://api.github.com/users/jvanbaarsen","html_url":"https://github.com/jvanbaarsen","followers_url":"https://api.github.com/users/jvanbaarsen/followers","following_url":"https://api.github.com/users/jvanbaarsen/following{/other_user}","gists_url":"https://api.github.com/users/jvanbaarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jvanbaarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvanbaarsen/subscriptions","organizations_url":"https://api.github.com/users/jvanbaarsen/orgs","repos_url":"https://api.github.com/users/jvanbaarsen/repos","events_url":"https://api.github.com/users/jvanbaarsen/events{/privacy}","received_events_url":"https://api.github.com/users/jvanbaarsen/received_events","type":"User","site_admin":false},"body":"What do you think about:\r\n\r\n```ruby\r\n  resources :users, only: [:index, :create] do\r\n    get \":token\" => \"users#activate\", as: :activate, on: :collection\r\n    patch \":token\" => \"users#activate\", on: :collection\r\n  end\r\n```","created_at":"2016-01-06T08:39:10Z","updated_at":"2016-01-06T08:39:10Z","html_url":"https://github.com/intercity/intercity-next/pull/43#discussion_r48936694","pull_request_url":"https://api.github.com/repos/intercity/intercity-next/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/intercity/intercity-next/pulls/comments/48936694"},"html":{"href":"https://github.com/intercity/intercity-next/pull/43#discussion_r48936694"},"pull_request":{"href":"https://api.github.com/repos/intercity/intercity-next/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/intercity/intercity-next/pulls/43","id":55157856,"html_url":"https://github.com/intercity/intercity-next/pull/43","diff_url":"https://github.com/intercity/intercity-next/pull/43.diff","patch_url":"https://github.com/intercity/intercity-next/pull/43.patch","issue_url":"https://api.github.com/repos/intercity/intercity-next/issues/43","number":43,"state":"open","locked":false,"title":"[WIP] Create new users","user":{"login":"brambokdam","id":5755430,"avatar_url":"https://avatars.githubusercontent.com/u/5755430?v=3","gravatar_id":"","url":"https://api.github.com/users/brambokdam","html_url":"https://github.com/brambokdam","followers_url":"https://api.github.com/users/brambokdam/followers","following_url":"https://api.github.com/users/brambokdam/following{/other_user}","gists_url":"https://api.github.com/users/brambokdam/gists{/gist_id}","starred_url":"https://api.github.com/users/brambokdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brambokdam/subscriptions","organizations_url":"https://api.github.com/users/brambokdam/orgs","repos_url":"https://api.github.com/users/brambokdam/repos","events_url":"https://api.github.com/users/brambokdam/events{/privacy}","received_events_url":"https://api.github.com/users/brambokdam/received_events","type":"User","site_admin":false},"body":"This will provide intercity users with the option to create new users. The new user will get a email with a link to confirm his account and will be able to set his password in the activation screen.\r\n\r\nThis wil fix #21\r\n\r\nTODO:\r\n- [ ] Fix onboarding user","created_at":"2016-01-05T23:25:45Z","updated_at":"2016-01-06T08:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"554e2d172b6fcc4446dc28bf78605ea6535f78a8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/intercity/intercity-next/pulls/43/commits","review_comments_url":"https://api.github.com/repos/intercity/intercity-next/pulls/43/comments","review_comment_url":"https://api.github.com/repos/intercity/intercity-next/pulls/comments{/number}","comments_url":"https://api.github.com/repos/intercity/intercity-next/issues/43/comments","statuses_url":"https://api.github.com/repos/intercity/intercity-next/statuses/e04b46e5b053feea4edea2bddd00d82a50ef1a93","head":{"label":"brambokdam:create-new-users","ref":"create-new-users","sha":"e04b46e5b053feea4edea2bddd00d82a50ef1a93","user":{"login":"brambokdam","id":5755430,"avatar_url":"https://avatars.githubusercontent.com/u/5755430?v=3","gravatar_id":"","url":"https://api.github.com/users/brambokdam","html_url":"https://github.com/brambokdam","followers_url":"https://api.github.com/users/brambokdam/followers","following_url":"https://api.github.com/users/brambokdam/following{/other_user}","gists_url":"https://api.github.com/users/brambokdam/gists{/gist_id}","starred_url":"https://api.github.com/users/brambokdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brambokdam/subscriptions","organizations_url":"https://api.github.com/users/brambokdam/orgs","repos_url":"https://api.github.com/users/brambokdam/repos","events_url":"https://api.github.com/users/brambokdam/events{/privacy}","received_events_url":"https://api.github.com/users/brambokdam/received_events","type":"User","site_admin":false},"repo":{"id":47700616,"name":"intercity-next","full_name":"brambokdam/intercity-next","owner":{"login":"brambokdam","id":5755430,"avatar_url":"https://avatars.githubusercontent.com/u/5755430?v=3","gravatar_id":"","url":"https://api.github.com/users/brambokdam","html_url":"https://github.com/brambokdam","followers_url":"https://api.github.com/users/brambokdam/followers","following_url":"https://api.github.com/users/brambokdam/following{/other_user}","gists_url":"https://api.github.com/users/brambokdam/gists{/gist_id}","starred_url":"https://api.github.com/users/brambokdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brambokdam/subscriptions","organizations_url":"https://api.github.com/users/brambokdam/orgs","repos_url":"https://api.github.com/users/brambokdam/repos","events_url":"https://api.github.com/users/brambokdam/events{/privacy}","received_events_url":"https://api.github.com/users/brambokdam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brambokdam/intercity-next","description":"","fork":true,"url":"https://api.github.com/repos/brambokdam/intercity-next","forks_url":"https://api.github.com/repos/brambokdam/intercity-next/forks","keys_url":"https://api.github.com/repos/brambokdam/intercity-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brambokdam/intercity-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brambokdam/intercity-next/teams","hooks_url":"https://api.github.com/repos/brambokdam/intercity-next/hooks","issue_events_url":"https://api.github.com/repos/brambokdam/intercity-next/issues/events{/number}","events_url":"https://api.github.com/repos/brambokdam/intercity-next/events","assignees_url":"https://api.github.com/repos/brambokdam/intercity-next/assignees{/user}","branches_url":"https://api.github.com/repos/brambokdam/intercity-next/branches{/branch}","tags_url":"https://api.github.com/repos/brambokdam/intercity-next/tags","blobs_url":"https://api.github.com/repos/brambokdam/intercity-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brambokdam/intercity-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brambokdam/intercity-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/brambokdam/intercity-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brambokdam/intercity-next/statuses/{sha}","languages_url":"https://api.github.com/repos/brambokdam/intercity-next/languages","stargazers_url":"https://api.github.com/repos/brambokdam/intercity-next/stargazers","contributors_url":"https://api.github.com/repos/brambokdam/intercity-next/contributors","subscribers_url":"https://api.github.com/repos/brambokdam/intercity-next/subscribers","subscription_url":"https://api.github.com/repos/brambokdam/intercity-next/subscription","commits_url":"https://api.github.com/repos/brambokdam/intercity-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/brambokdam/intercity-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/brambokdam/intercity-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/brambokdam/intercity-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/brambokdam/intercity-next/contents/{+path}","compare_url":"https://api.github.com/repos/brambokdam/intercity-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brambokdam/intercity-next/merges","archive_url":"https://api.github.com/repos/brambokdam/intercity-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brambokdam/intercity-next/downloads","issues_url":"https://api.github.com/repos/brambokdam/intercity-next/issues{/number}","pulls_url":"https://api.github.com/repos/brambokdam/intercity-next/pulls{/number}","milestones_url":"https://api.github.com/repos/brambokdam/intercity-next/milestones{/number}","notifications_url":"https://api.github.com/repos/brambokdam/intercity-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brambokdam/intercity-next/labels{/name}","releases_url":"https://api.github.com/repos/brambokdam/intercity-next/releases{/id}","created_at":"2015-12-09T15:39:30Z","updated_at":"2015-12-09T15:39:30Z","pushed_at":"2016-01-05T23:25:19Z","git_url":"git://github.com/brambokdam/intercity-next.git","ssh_url":"git@github.com:brambokdam/intercity-next.git","clone_url":"https://github.com/brambokdam/intercity-next.git","svn_url":"https://github.com/brambokdam/intercity-next","homepage":null,"size":202,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"intercity:master","ref":"master","sha":"891a97ba5030881a495b2343b0c77042fd4dc1cf","user":{"login":"intercity","id":5263466,"avatar_url":"https://avatars.githubusercontent.com/u/5263466?v=3","gravatar_id":"","url":"https://api.github.com/users/intercity","html_url":"https://github.com/intercity","followers_url":"https://api.github.com/users/intercity/followers","following_url":"https://api.github.com/users/intercity/following{/other_user}","gists_url":"https://api.github.com/users/intercity/gists{/gist_id}","starred_url":"https://api.github.com/users/intercity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intercity/subscriptions","organizations_url":"https://api.github.com/users/intercity/orgs","repos_url":"https://api.github.com/users/intercity/repos","events_url":"https://api.github.com/users/intercity/events{/privacy}","received_events_url":"https://api.github.com/users/intercity/received_events","type":"Organization","site_admin":false},"repo":{"id":47646072,"name":"intercity-next","full_name":"intercity/intercity-next","owner":{"login":"intercity","id":5263466,"avatar_url":"https://avatars.githubusercontent.com/u/5263466?v=3","gravatar_id":"","url":"https://api.github.com/users/intercity","html_url":"https://github.com/intercity","followers_url":"https://api.github.com/users/intercity/followers","following_url":"https://api.github.com/users/intercity/following{/other_user}","gists_url":"https://api.github.com/users/intercity/gists{/gist_id}","starred_url":"https://api.github.com/users/intercity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intercity/subscriptions","organizations_url":"https://api.github.com/users/intercity/orgs","repos_url":"https://api.github.com/users/intercity/repos","events_url":"https://api.github.com/users/intercity/events{/privacy}","received_events_url":"https://api.github.com/users/intercity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intercity/intercity-next","description":"","fork":false,"url":"https://api.github.com/repos/intercity/intercity-next","forks_url":"https://api.github.com/repos/intercity/intercity-next/forks","keys_url":"https://api.github.com/repos/intercity/intercity-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intercity/intercity-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intercity/intercity-next/teams","hooks_url":"https://api.github.com/repos/intercity/intercity-next/hooks","issue_events_url":"https://api.github.com/repos/intercity/intercity-next/issues/events{/number}","events_url":"https://api.github.com/repos/intercity/intercity-next/events","assignees_url":"https://api.github.com/repos/intercity/intercity-next/assignees{/user}","branches_url":"https://api.github.com/repos/intercity/intercity-next/branches{/branch}","tags_url":"https://api.github.com/repos/intercity/intercity-next/tags","blobs_url":"https://api.github.com/repos/intercity/intercity-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intercity/intercity-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intercity/intercity-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/intercity/intercity-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intercity/intercity-next/statuses/{sha}","languages_url":"https://api.github.com/repos/intercity/intercity-next/languages","stargazers_url":"https://api.github.com/repos/intercity/intercity-next/stargazers","contributors_url":"https://api.github.com/repos/intercity/intercity-next/contributors","subscribers_url":"https://api.github.com/repos/intercity/intercity-next/subscribers","subscription_url":"https://api.github.com/repos/intercity/intercity-next/subscription","commits_url":"https://api.github.com/repos/intercity/intercity-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/intercity/intercity-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/intercity/intercity-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/intercity/intercity-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/intercity/intercity-next/contents/{+path}","compare_url":"https://api.github.com/repos/intercity/intercity-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intercity/intercity-next/merges","archive_url":"https://api.github.com/repos/intercity/intercity-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intercity/intercity-next/downloads","issues_url":"https://api.github.com/repos/intercity/intercity-next/issues{/number}","pulls_url":"https://api.github.com/repos/intercity/intercity-next/pulls{/number}","milestones_url":"https://api.github.com/repos/intercity/intercity-next/milestones{/number}","notifications_url":"https://api.github.com/repos/intercity/intercity-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intercity/intercity-next/labels{/name}","releases_url":"https://api.github.com/repos/intercity/intercity-next/releases{/id}","created_at":"2015-12-08T19:56:17Z","updated_at":"2015-12-14T08:09:05Z","pushed_at":"2016-01-05T23:25:45Z","git_url":"git://github.com/intercity/intercity-next.git","ssh_url":"git@github.com:intercity/intercity-next.git","clone_url":"https://github.com/intercity/intercity-next.git","svn_url":"https://github.com/intercity/intercity-next","homepage":null,"size":196,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intercity/intercity-next/pulls/43"},"html":{"href":"https://github.com/intercity/intercity-next/pull/43"},"issue":{"href":"https://api.github.com/repos/intercity/intercity-next/issues/43"},"comments":{"href":"https://api.github.com/repos/intercity/intercity-next/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/intercity/intercity-next/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/intercity/intercity-next/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/intercity/intercity-next/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/intercity/intercity-next/statuses/e04b46e5b053feea4edea2bddd00d82a50ef1a93"}}}}