Add module `accounts` route scope in api routes (#29582)

main-rebase-security-fix
Matt Jankowski 2024-03-14 05:18:31 -04:00 committed by GitHub
parent 4991198b70
commit 01ecc80118
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 6 deletions

View File

@ -181,12 +181,14 @@ namespace :api, format: false do
end
resources :accounts, only: [:create, :show] do
resources :statuses, only: :index, controller: 'accounts/statuses'
resources :followers, only: :index, controller: 'accounts/follower_accounts'
resources :following, only: :index, controller: 'accounts/following_accounts'
resources :lists, only: :index, controller: 'accounts/lists'
resources :identity_proofs, only: :index, controller: 'accounts/identity_proofs'
resources :featured_tags, only: :index, controller: 'accounts/featured_tags'
scope module: :accounts do
resources :statuses, only: :index
resources :followers, only: :index, controller: :follower_accounts
resources :following, only: :index, controller: :following_accounts
resources :lists, only: :index
resources :identity_proofs, only: :index
resources :featured_tags, only: :index
end
member do
post :follow