diff options
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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()); }); |
