mirror of
https://github.com/strapi/strapi.git
synced 2025-07-27 10:56:36 +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 });
|
|
},
|
|
};
|