0
0
Fork 0

Spec coverage and refactor for the api/v1/accounts controllers (#3451)

This commit is contained in:
Matt Jankowski 2017-05-31 15:36:24 -04:00 committed by Eugen Rochko
parent de4681b2be
commit 5c63523972
18 changed files with 579 additions and 230 deletions

View file

@ -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