summaryrefslogtreecommitdiff
path: root/src/app.js
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 20:47:02 +0000
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 20:47:02 +0000
commit2b8fea0fd0b514b5ca4349185bf4dfb4455d5875 (patch)
treeba089cca4b3a16bcd1b33fa3c1db2729600f5c81 /src/app.js
parent48220cb62df8213e30f7b4a431601e5ba5cdea1e (diff)
Configures stuff
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js4
1 files changed, 4 insertions, 0 deletions
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());
});