mirror of
https://github.com/strapi/strapi.git
synced 2025-07-27 02:44:13 +00:00
20 lines
414 B
JavaScript
20 lines
414 B
JavaScript
'use strict';
|
|
|
|
const { getService } = require('../utils');
|
|
|
|
module.exports = {
|
|
async getPermissions(ctx) {
|
|
const actionsMap = await strapi.contentAPI.permissions.getActionsMap();
|
|
|
|
ctx.send({ data: actionsMap });
|
|
},
|
|
|
|
async getRoutes(ctx) {
|
|
const contentApiService = getService('content-api');
|
|
|
|
const routesMap = await contentApiService.getRoutes();
|
|
|
|
ctx.send({ data: routesMap });
|
|
},
|
|
};
|