diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 20:47:02 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 20:47:02 +0000 |
| commit | 2b8fea0fd0b514b5ca4349185bf4dfb4455d5875 (patch) | |
| tree | ba089cca4b3a16bcd1b33fa3c1db2729600f5c81 /src/app.js | |
| parent | 48220cb62df8213e30f7b4a431601e5ba5cdea1e (diff) | |
Configures stuff
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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()); }); |
