20 lines
414 B
JavaScript
Raw Normal View History

'use strict';
2022-08-31 11:39:55 +03:00
const { getService } = require('../utils');
module.exports = {
async getPermissions(ctx) {
const actionsMap = await strapi.contentAPI.permissions.getActionsMap();
ctx.send({ data: actionsMap });
},
2022-08-31 11:39:55 +03:00
async getRoutes(ctx) {
const contentApiService = getService('content-api');
const routesMap = await contentApiService.getRoutes();
ctx.send({ data: routesMap });
},
};