17 lines
312 B
JavaScript
Raw Normal View History

'use strict';
/**
* Email.js controller
*
* @description: A set of functions called "actions" of the `email` plugin.
*/
module.exports = {
send: async ctx => {
2018-09-18 13:20:55 +02:00
let options = ctx.request.body;
await strapi.plugins.email.services.email.send(options);
// Send 200 `ok`
ctx.send({});
},
};