summaryrefslogtreecommitdiff
path: root/src/app.js
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 20:59:26 +0000
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 20:59:26 +0000
commit9f44e87b092e9149c47466e4578f794fe4376524 (patch)
treecab65045dac8cd99d48a225c731d09c4a000320b /src/app.js
parent2b8fea0fd0b514b5ca4349185bf4dfb4455d5875 (diff)
Does stuff
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index 8c863a2..9067aa6 100644
--- a/src/app.js
+++ b/src/app.js
@@ -7,8 +7,10 @@ const app = express();
app.use(bodyParser.urlencoded({ extended: false }));
app.post('/sms', (req, res) => {
- const
+ /** @type {string} */
+ const body = req.body;
const twiml = new MessagingResponse();
+ twiml.message(JSON.stringify(body));
res.type('text/xml').send(twiml.toString());
});