mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 07:02:26 +00:00
30 lines
448 B
JavaScript
30 lines
448 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
module.exports = [
|
||
|
{
|
||
|
method: 'GET',
|
||
|
path: '/roles/:id',
|
||
|
handler: 'role.findOne',
|
||
|
},
|
||
|
{
|
||
|
method: 'GET',
|
||
|
path: '/roles',
|
||
|
handler: 'role.find',
|
||
|
},
|
||
|
{
|
||
|
method: 'POST',
|
||
|
path: '/roles',
|
||
|
handler: 'role.createRole',
|
||
|
},
|
||
|
{
|
||
|
method: 'PUT',
|
||
|
path: '/roles/:role',
|
||
|
handler: 'role.updateRole',
|
||
|
},
|
||
|
{
|
||
|
method: 'DELETE',
|
||
|
path: '/roles/:role',
|
||
|
handler: 'role.deleteRole',
|
||
|
},
|
||
|
];
|