mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-26 04:55:07 +01:00
Add module instances
route scope in api routes (#29581)
This commit is contained in:
parent
01ecc80118
commit
18ffd4d925
@ -125,14 +125,16 @@ namespace :api, format: false do
|
|||||||
end
|
end
|
||||||
|
|
||||||
resource :instance, only: [:show] do
|
resource :instance, only: [:show] do
|
||||||
resources :peers, only: [:index], controller: 'instances/peers'
|
scope module: :instances do
|
||||||
resources :rules, only: [:index], controller: 'instances/rules'
|
resources :peers, only: [:index]
|
||||||
resources :domain_blocks, only: [:index], controller: 'instances/domain_blocks'
|
resources :rules, only: [:index]
|
||||||
resource :privacy_policy, only: [:show], controller: 'instances/privacy_policies'
|
resources :domain_blocks, only: [:index]
|
||||||
resource :extended_description, only: [:show], controller: 'instances/extended_descriptions'
|
resource :privacy_policy, only: [:show]
|
||||||
resource :translation_languages, only: [:show], controller: 'instances/translation_languages'
|
resource :extended_description, only: [:show]
|
||||||
resource :languages, only: [:show], controller: 'instances/languages'
|
resource :translation_languages, only: [:show]
|
||||||
resource :activity, only: [:show], controller: 'instances/activity'
|
resource :languages, only: [:show]
|
||||||
|
resource :activity, only: [:show], controller: :activity
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :peers do
|
namespace :peers do
|
||||||
|
Loading…
Reference in New Issue
Block a user