diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-31 15:36:24 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-31 21:36:24 +0200 |
commit | 5c6352397257d82e75b90cc5e7de1a3922bde7bd (patch) | |
tree | 38d617da023ed80e36d1255f8190b22b4a624c75 /config | |
parent | de4681b2be0b0efa1dede092445a53d4a593c140 (diff) |
Spec coverage and refactor for the api/v1/accounts controllers (#3451)
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/config/routes.rb b/config/routes.rb index b1590f929..5c1c8e594 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -169,19 +169,18 @@ Rails.application.routes.draw do end end + namespace :accounts do + get :verify_credentials, to: 'credentials#show' + patch :update_credentials, to: 'credentials#update' + resource :search, only: :show, controller: :search + resources :relationships, only: :index + end resources :accounts, only: [:show] do - collection do - get :relationships - get :verify_credentials - patch :update_credentials - get :search - end + resources :statuses, only: :index, controller: 'accounts/statuses' + resources :followers, only: :index, controller: 'accounts/follower_accounts' + resources :following, only: :index, controller: 'accounts/following_accounts' member do - get :statuses - get :followers - get :following - post :follow post :unfollow post :block |