mirror of
https://github.com/strapi/strapi.git
synced 2025-08-02 13:58:18 +00:00
29 lines
417 B
JavaScript
29 lines
417 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
module.exports = [
|
||
|
{
|
||
|
method: 'POST',
|
||
|
path: '/roles',
|
||
|
handler: 'role.create',
|
||
|
config: {
|
||
|
policies: [],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
method: 'DELETE',
|
||
|
path: '/roles/:id',
|
||
|
handler: 'role.deleteOne',
|
||
|
config: {
|
||
|
policies: [],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
method: 'POST',
|
||
|
path: '/roles/batch-delete',
|
||
|
handler: 'role.deleteMany',
|
||
|
config: {
|
||
|
policies: [],
|
||
|
},
|
||
|
},
|
||
|
];
|