mirror of
https://github.com/strapi/strapi.git
synced 2025-07-26 02:20:32 +00:00
21 lines
359 B
JavaScript
21 lines
359 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
module.exports = [
|
||
|
{
|
||
|
method: 'GET',
|
||
|
path: '/permissions',
|
||
|
handler: 'permission.getAll',
|
||
|
config: {
|
||
|
policies: ['admin::isAuthenticatedAdmin'],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
method: 'POST',
|
||
|
path: '/permissions/check',
|
||
|
handler: 'permission.check',
|
||
|
config: {
|
||
|
policies: ['admin::isAuthenticatedAdmin'],
|
||
|
},
|
||
|
},
|
||
|
];
|