Add module `instances` route scope in api routes (#29581)

pull/28369/head
Matt Jankowski 10 months ago committed by GitHub
parent 01ecc80118
commit 18ffd4d925
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -125,14 +125,16 @@ namespace :api, format: false do
end
resource :instance, only: [:show] do
resources :peers, only: [:index], controller: 'instances/peers'
resources :rules, only: [:index], controller: 'instances/rules'
resources :domain_blocks, only: [:index], controller: 'instances/domain_blocks'
resource :privacy_policy, only: [:show], controller: 'instances/privacy_policies'
resource :extended_description, only: [:show], controller: 'instances/extended_descriptions'
resource :translation_languages, only: [:show], controller: 'instances/translation_languages'
resource :languages, only: [:show], controller: 'instances/languages'
resource :activity, only: [:show], controller: 'instances/activity'
scope module: :instances do
resources :peers, only: [:index]
resources :rules, only: [:index]
resources :domain_blocks, only: [:index]
resource :privacy_policy, only: [:show]
resource :extended_description, only: [:show]
resource :translation_languages, only: [:show]
resource :languages, only: [:show]
resource :activity, only: [:show], controller: :activity
end
end
namespace :peers do

Loading…
Cancel
Save