mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 11:54:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			314 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			314 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
'use strict';
 | 
						|
 | 
						|
module.exports = {
 | 
						|
  async getPermissions(ctx) {
 | 
						|
    const actionsMap = await strapi.contentAPI.permissions.getActionsMap();
 | 
						|
 | 
						|
    ctx.send({ data: actionsMap });
 | 
						|
  },
 | 
						|
 | 
						|
  async getRoutes(ctx) {
 | 
						|
    const routesMap = await strapi.contentAPI.getRoutesMap();
 | 
						|
 | 
						|
    ctx.send({ data: routesMap });
 | 
						|
  },
 | 
						|
};
 |