mirror of
https://github.com/strapi/strapi.git
synced 2025-07-26 18:38:46 +00:00
16 lines
306 B
JavaScript
16 lines
306 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
module.exports = [
|
||
|
{
|
||
|
method: 'POST',
|
||
|
path: '/api-tokens',
|
||
|
handler: 'api-token.create',
|
||
|
config: {
|
||
|
policies: [
|
||
|
'admin::isAuthenticatedAdmin',
|
||
|
{ name: 'admin::hasPermissions', options: { actions: ['admin::api-tokens.create'] } },
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
];
|