0
0

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

This commit is contained in:
Matt Jankowski 2024-03-14 05:18:36 -04:00 committed by GitHub
parent 01ecc80118
commit 18ffd4d925
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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