mirror of
https://github.com/strapi/strapi.git
synced 2025-07-22 16:37:13 +00:00
17 lines
312 B
JavaScript
17 lines
312 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Email.js controller
|
|
*
|
|
* @description: A set of functions called "actions" of the `email` plugin.
|
|
*/
|
|
module.exports = {
|
|
send: async ctx => {
|
|
let options = ctx.request.body;
|
|
await strapi.plugins.email.services.email.send(options);
|
|
|
|
// Send 200 `ok`
|
|
ctx.send({});
|
|
},
|
|
};
|