From 2b8fea0fd0b514b5ca4349185bf4dfb4455d5875 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Thu, 7 Mar 2024 20:47:02 +0000 Subject: Configures stuff --- src/app.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/app.js b/src/app.js index 04d192a..8c863a2 100644 --- a/src/app.js +++ b/src/app.js @@ -1,9 +1,13 @@ +const bodyParser = require('body-parser'); const express = require('express'); const { MessagingResponse } = require('twilio').twiml; const app = express(); +app.use(bodyParser.urlencoded({ extended: false })); + app.post('/sms', (req, res) => { + const const twiml = new MessagingResponse(); res.type('text/xml').send(twiml.toString()); }); -- cgit v1.2.3