{"action":"created","comment":{"url":"https://api.github.com/repos/spree/spree/pulls/comments/25236234","id":25236234,"diff_hunk":"@@ -1,127 +1,109 @@\n Spree::Core::Engine.add_routes do\n   namespace :admin do\n     resources :users do\n-      member do\n-        put :generate_api_key\n-        put :clear_api_key\n-      end\n+      put :generate_api_key,\n+          :clear_api_key,\n+          on: :member\n     end\n   end\n \n   namespace :api, defaults: { format: 'json' } do\n-    resources :promotions, only: [:show]\n+    get '/config/money', to: 'config#money'\n+    get '/config', to: 'config#show'","path":"api/config/routes.rb","position":17,"original_position":17,"commit_id":"c71f81f6574e7e7a6aa9d36280a1f043e0593198","original_commit_id":"c71f81f6574e7e7a6aa9d36280a1f043e0593198","user":{"login":"BenMorganIO","id":3117356,"avatar_url":"https://avatars.githubusercontent.com/u/3117356?v=3","gravatar_id":"","url":"https://api.github.com/users/BenMorganIO","html_url":"https://github.com/BenMorganIO","followers_url":"https://api.github.com/users/BenMorganIO/followers","following_url":"https://api.github.com/users/BenMorganIO/following{/other_user}","gists_url":"https://api.github.com/users/BenMorganIO/gists{/gist_id}","starred_url":"https://api.github.com/users/BenMorganIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenMorganIO/subscriptions","organizations_url":"https://api.github.com/users/BenMorganIO/orgs","repos_url":"https://api.github.com/users/BenMorganIO/repos","events_url":"https://api.github.com/users/BenMorganIO/events{/privacy}","received_events_url":"https://api.github.com/users/BenMorganIO/received_events","type":"User","site_admin":false},"body":"This should probably become a `resource`.","created_at":"2015-02-24T08:48:56Z","updated_at":"2015-02-24T08:48:56Z","html_url":"https://github.com/spree/spree/pull/6051#discussion_r25236234","pull_request_url":"https://api.github.com/repos/spree/spree/pulls/6051","_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/comments/25236234"},"html":{"href":"https://github.com/spree/spree/pull/6051#discussion_r25236234"},"pull_request":{"href":"https://api.github.com/repos/spree/spree/pulls/6051"}}},"pull_request":{"url":"https://api.github.com/repos/spree/spree/pulls/6051","id":29460318,"html_url":"https://github.com/spree/spree/pull/6051","diff_url":"https://github.com/spree/spree/pull/6051.diff","patch_url":"https://github.com/spree/spree/pull/6051.patch","issue_url":"https://api.github.com/repos/spree/spree/issues/6051","number":6051,"state":"open","locked":false,"title":"Api routes refactor","user":{"login":"BenMorganIO","id":3117356,"avatar_url":"https://avatars.githubusercontent.com/u/3117356?v=3","gravatar_id":"","url":"https://api.github.com/users/BenMorganIO","html_url":"https://github.com/BenMorganIO","followers_url":"https://api.github.com/users/BenMorganIO/followers","following_url":"https://api.github.com/users/BenMorganIO/following{/other_user}","gists_url":"https://api.github.com/users/BenMorganIO/gists{/gist_id}","starred_url":"https://api.github.com/users/BenMorganIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenMorganIO/subscriptions","organizations_url":"https://api.github.com/users/BenMorganIO/orgs","repos_url":"https://api.github.com/users/BenMorganIO/repos","events_url":"https://api.github.com/users/BenMorganIO/events{/privacy}","received_events_url":"https://api.github.com/users/BenMorganIO/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-17T17:21:08Z","updated_at":"2015-02-24T08:48:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aac91833c364e8fc44141b3abbbf7efe943eef1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spree/spree/pulls/6051/commits","review_comments_url":"https://api.github.com/repos/spree/spree/pulls/6051/comments","review_comment_url":"https://api.github.com/repos/spree/spree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spree/spree/issues/6051/comments","statuses_url":"https://api.github.com/repos/spree/spree/statuses/c71f81f6574e7e7a6aa9d36280a1f043e0593198","head":{"label":"BenMorganIO:api-routes-refactor","ref":"api-routes-refactor","sha":"c71f81f6574e7e7a6aa9d36280a1f043e0593198","user":{"login":"BenMorganIO","id":3117356,"avatar_url":"https://avatars.githubusercontent.com/u/3117356?v=3","gravatar_id":"","url":"https://api.github.com/users/BenMorganIO","html_url":"https://github.com/BenMorganIO","followers_url":"https://api.github.com/users/BenMorganIO/followers","following_url":"https://api.github.com/users/BenMorganIO/following{/other_user}","gists_url":"https://api.github.com/users/BenMorganIO/gists{/gist_id}","starred_url":"https://api.github.com/users/BenMorganIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenMorganIO/subscriptions","organizations_url":"https://api.github.com/users/BenMorganIO/orgs","repos_url":"https://api.github.com/users/BenMorganIO/repos","events_url":"https://api.github.com/users/BenMorganIO/events{/privacy}","received_events_url":"https://api.github.com/users/BenMorganIO/received_events","type":"User","site_admin":false},"repo":{"id":21265635,"name":"spree","full_name":"BenMorganIO/spree","owner":{"login":"BenMorganIO","id":3117356,"avatar_url":"https://avatars.githubusercontent.com/u/3117356?v=3","gravatar_id":"","url":"https://api.github.com/users/BenMorganIO","html_url":"https://github.com/BenMorganIO","followers_url":"https://api.github.com/users/BenMorganIO/followers","following_url":"https://api.github.com/users/BenMorganIO/following{/other_user}","gists_url":"https://api.github.com/users/BenMorganIO/gists{/gist_id}","starred_url":"https://api.github.com/users/BenMorganIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenMorganIO/subscriptions","organizations_url":"https://api.github.com/users/BenMorganIO/orgs","repos_url":"https://api.github.com/users/BenMorganIO/repos","events_url":"https://api.github.com/users/BenMorganIO/events{/privacy}","received_events_url":"https://api.github.com/users/BenMorganIO/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BenMorganIO/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":true,"url":"https://api.github.com/repos/BenMorganIO/spree","forks_url":"https://api.github.com/repos/BenMorganIO/spree/forks","keys_url":"https://api.github.com/repos/BenMorganIO/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BenMorganIO/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BenMorganIO/spree/teams","hooks_url":"https://api.github.com/repos/BenMorganIO/spree/hooks","issue_events_url":"https://api.github.com/repos/BenMorganIO/spree/issues/events{/number}","events_url":"https://api.github.com/repos/BenMorganIO/spree/events","assignees_url":"https://api.github.com/repos/BenMorganIO/spree/assignees{/user}","branches_url":"https://api.github.com/repos/BenMorganIO/spree/branches{/branch}","tags_url":"https://api.github.com/repos/BenMorganIO/spree/tags","blobs_url":"https://api.github.com/repos/BenMorganIO/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BenMorganIO/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BenMorganIO/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/BenMorganIO/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BenMorganIO/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/BenMorganIO/spree/languages","stargazers_url":"https://api.github.com/repos/BenMorganIO/spree/stargazers","contributors_url":"https://api.github.com/repos/BenMorganIO/spree/contributors","subscribers_url":"https://api.github.com/repos/BenMorganIO/spree/subscribers","subscription_url":"https://api.github.com/repos/BenMorganIO/spree/subscription","commits_url":"https://api.github.com/repos/BenMorganIO/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/BenMorganIO/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/BenMorganIO/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/BenMorganIO/spree/issues/comments{/number}","contents_url":"https://api.github.com/repos/BenMorganIO/spree/contents/{+path}","compare_url":"https://api.github.com/repos/BenMorganIO/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BenMorganIO/spree/merges","archive_url":"https://api.github.com/repos/BenMorganIO/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BenMorganIO/spree/downloads","issues_url":"https://api.github.com/repos/BenMorganIO/spree/issues{/number}","pulls_url":"https://api.github.com/repos/BenMorganIO/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/BenMorganIO/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/BenMorganIO/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BenMorganIO/spree/labels{/name}","releases_url":"https://api.github.com/repos/BenMorganIO/spree/releases{/id}","created_at":"2014-06-27T05:59:41Z","updated_at":"2015-02-20T07:39:28Z","pushed_at":"2015-02-24T08:47:40Z","git_url":"git://github.com/BenMorganIO/spree.git","ssh_url":"git@github.com:BenMorganIO/spree.git","clone_url":"https://github.com/BenMorganIO/spree.git","svn_url":"https://github.com/BenMorganIO/spree","homepage":"http://spreecommerce.com","size":71468,"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":"spree:master","ref":"master","sha":"fdaccf0554136f569da4694ca54c2bbf193471ef","user":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"repo":{"id":3314,"name":"spree","full_name":"spree/spree","owner":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spree/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":false,"url":"https://api.github.com/repos/spree/spree","forks_url":"https://api.github.com/repos/spree/spree/forks","keys_url":"https://api.github.com/repos/spree/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spree/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spree/spree/teams","hooks_url":"https://api.github.com/repos/spree/spree/hooks","issue_events_url":"https://api.github.com/repos/spree/spree/issues/events{/number}","events_url":"https://api.github.com/repos/spree/spree/events","assignees_url":"https://api.github.com/repos/spree/spree/assignees{/user}","branches_url":"https://api.github.com/repos/spree/spree/branches{/branch}","tags_url":"https://api.github.com/repos/spree/spree/tags","blobs_url":"https://api.github.com/repos/spree/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spree/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spree/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/spree/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spree/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/spree/spree/languages","stargazers_url":"https://api.github.com/repos/spree/spree/stargazers","contributors_url":"https://api.github.com/repos/spree/spree/contributors","subscribers_url":"https://api.github.com/repos/spree/spree/subscribers","subscription_url":"https://api.github.com/repos/spree/spree/subscription","commits_url":"https://api.github.com/repos/spree/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/spree/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/spree/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/spree/spree/issues/comments{/number}","contents_url":"https://api.github.com/repos/spree/spree/contents/{+path}","compare_url":"https://api.github.com/repos/spree/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spree/spree/merges","archive_url":"https://api.github.com/repos/spree/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spree/spree/downloads","issues_url":"https://api.github.com/repos/spree/spree/issues{/number}","pulls_url":"https://api.github.com/repos/spree/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/spree/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/spree/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spree/spree/labels{/name}","releases_url":"https://api.github.com/repos/spree/spree/releases{/id}","created_at":"2008-03-10T14:45:35Z","updated_at":"2015-02-23T20:50:12Z","pushed_at":"2015-02-23T20:50:12Z","git_url":"git://github.com/spree/spree.git","ssh_url":"git@github.com:spree/spree.git","clone_url":"https://github.com/spree/spree.git","svn_url":"https://github.com/spree/spree","homepage":"http://spreecommerce.com","size":131106,"stargazers_count":6005,"watchers_count":6005,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2807,"mirror_url":null,"open_issues_count":85,"forks":2807,"open_issues":85,"watchers":6005,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/6051"},"html":{"href":"https://github.com/spree/spree/pull/6051"},"issue":{"href":"https://api.github.com/repos/spree/spree/issues/6051"},"comments":{"href":"https://api.github.com/repos/spree/spree/issues/6051/comments"},"review_comments":{"href":"https://api.github.com/repos/spree/spree/pulls/6051/comments"},"review_comment":{"href":"https://api.github.com/repos/spree/spree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spree/spree/pulls/6051/commits"},"statuses":{"href":"https://api.github.com/repos/spree/spree/statuses/c71f81f6574e7e7a6aa9d36280a1f043e0593198"}}}}