mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +00:00 
			
		
		
		
	
		
			
	
	
		
			21 lines
		
	
	
		
			359 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			359 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|   | 'use strict'; | ||
|  | 
 | ||
|  | module.exports = [ | ||
|  |   { | ||
|  |     method: 'GET', | ||
|  |     path: '/permissions', | ||
|  |     handler: 'permission.getAll', | ||
|  |     config: { | ||
|  |       policies: ['admin::isAuthenticatedAdmin'], | ||
|  |     }, | ||
|  |   }, | ||
|  |   { | ||
|  |     method: 'POST', | ||
|  |     path: '/permissions/check', | ||
|  |     handler: 'permission.check', | ||
|  |     config: { | ||
|  |       policies: ['admin::isAuthenticatedAdmin'], | ||
|  |     }, | ||
|  |   }, | ||
|  | ]; |