UNPKG

medusa-plugin-sendgrid-typescript

Version:
15 lines 470 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.POST = void 0; async function POST(req, res) { const sendgridService = req.scope.resolve("sendgridService"); await sendgridService.sendEmail({ templateId: req.body.template_id, from: req.body.from, to: req.body.to, dynamicTemplateData: req.body.data || {} }); res.sendStatus(200); } exports.POST = POST; //# sourceMappingURL=route.js.map