summaryrefslogtreecommitdiff
path: root/src/app.js
diff options
context:
space:
mode:
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());
});