mirror of
https://github.com/strapi/strapi.git
synced 2025-12-02 01:52:21 +00:00
clean comment
This commit is contained in:
parent
8278afe3f3
commit
e3a4b431ba
@ -11,55 +11,6 @@ const enableFeatureMiddleware = (featureName) => (ctx, next) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
// {
|
|
||||||
// method: 'POST',
|
|
||||||
// path: '/roles',
|
|
||||||
// handler: 'role.create',
|
|
||||||
// config: {
|
|
||||||
// policies: [
|
|
||||||
// 'admin::isAuthenticatedAdmin',
|
|
||||||
// {
|
|
||||||
// name: 'admin::hasPermissions',
|
|
||||||
// config: {
|
|
||||||
// actions: ['admin::roles.create'],
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// method: 'DELETE',
|
|
||||||
// path: '/roles/:id',
|
|
||||||
// handler: 'role.deleteOne',
|
|
||||||
// config: {
|
|
||||||
// policies: [
|
|
||||||
// 'admin::isAuthenticatedAdmin',
|
|
||||||
// {
|
|
||||||
// name: 'admin::hasPermissions',
|
|
||||||
// config: {
|
|
||||||
// actions: ['admin::roles.delete'],
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// method: 'POST',
|
|
||||||
// path: '/roles/batch-delete',
|
|
||||||
// handler: 'role.deleteMany',
|
|
||||||
// config: {
|
|
||||||
// policies: [
|
|
||||||
// 'admin::isAuthenticatedAdmin',
|
|
||||||
// {
|
|
||||||
// name: 'admin::hasPermissions',
|
|
||||||
// config: {
|
|
||||||
// actions: ['admin::roles.delete'],
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
|
|
||||||
// SSO
|
// SSO
|
||||||
{
|
{
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user