@rexfng/send
Advanced tools
Comparing version 1.3.4 to 1.3.5
{ | ||
"name": "@rexfng/send", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "send email with restful api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const express = require('express') | ||
const router = express.Router() | ||
const bodyParser = require('body-parser') | ||
const urlencodedParser = bodyParser.urlencoded() | ||
const DB = require('@rexfng/db') | ||
@@ -9,6 +8,5 @@ const MongoDB = new DB() | ||
router.post('/', urlencodedParser, function(req,res){ | ||
router.post('/', express.urlencoded({extended: true}), function(req,res){ | ||
(async function(){ | ||
try{ | ||
console.log(req.body) | ||
let webhookResponse = await MongoDB.create("twilio-webhook", req.body) | ||
@@ -15,0 +13,0 @@ res.status(200).send(webhookResponse) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4860
116