Spec coverage and refactor for the api/v1/accounts controllers (#3451)
This commit is contained in:
parent
de4681b2be
commit
5c63523972
18 changed files with 579 additions and 230 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue