mirror of
https://github.com/strapi/strapi.git
synced 2025-07-22 16:37:13 +00:00
16 lines
322 B
JavaScript
16 lines
322 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
/**
|
|
* Returns every permissions, in nested format
|
|
* @param {KoaContext} ctx - koa context
|
|
*/
|
|
async getAll(ctx) {
|
|
const allWithNestedFormat = await strapi.admin.permissionProvider.getAllWithNestedFormat();
|
|
|
|
ctx.body = {
|
|
data: allWithNestedFormat,
|
|
};
|
|
},
|
|
};
|