mirror of
https://github.com/strapi/strapi.git
synced 2025-07-29 03:50:26 +00:00
35 lines
727 B
JavaScript
35 lines
727 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
module.exports = {
|
||
|
routes: [
|
||
|
{
|
||
|
method: 'POST',
|
||
|
path: '/',
|
||
|
handler: 'email.send',
|
||
|
config: {},
|
||
|
},
|
||
|
{
|
||
|
method: 'POST',
|
||
|
path: '/test',
|
||
|
handler: 'email.test',
|
||
|
config: {
|
||
|
policies: [
|
||
|
'admin::isAuthenticatedAdmin',
|
||
|
{ name: 'admin::hasPermissions', options: { actions: ['plugin::email.settings.read'] } },
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
method: 'GET',
|
||
|
path: '/settings',
|
||
|
handler: 'email.getSettings',
|
||
|
config: {
|
||
|
policies: [
|
||
|
'admin::isAuthenticatedAdmin',
|
||
|
{ name: 'admin::hasPermissions', options: { actions: ['plugin::email.settings.read'] } },
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
};
|