mirror of https://github.com/tootsuite/mastodon
Add module `accounts` route scope in api routes (#29582)
parent
4991198b70
commit
01ecc80118
|
@ -181,12 +181,14 @@ namespace :api, format: false do
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :accounts, only: [:create, :show] do
|
resources :accounts, only: [:create, :show] do
|
||||||
resources :statuses, only: :index, controller: 'accounts/statuses'
|
scope module: :accounts do
|
||||||
resources :followers, only: :index, controller: 'accounts/follower_accounts'
|
resources :statuses, only: :index
|
||||||
resources :following, only: :index, controller: 'accounts/following_accounts'
|
resources :followers, only: :index, controller: :follower_accounts
|
||||||
resources :lists, only: :index, controller: 'accounts/lists'
|
resources :following, only: :index, controller: :following_accounts
|
||||||
resources :identity_proofs, only: :index, controller: 'accounts/identity_proofs'
|
resources :lists, only: :index
|
||||||
resources :featured_tags, only: :index, controller: 'accounts/featured_tags'
|
resources :identity_proofs, only: :index
|
||||||
|
resources :featured_tags, only: :index
|
||||||
|
end
|
||||||
|
|
||||||
member do
|
member do
|
||||||
post :follow
|
post :follow
|
||||||
|
|
Loading…
Reference in New Issue