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 | ||||
| 
 | ||||
|     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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user