I’m working on getting Twilio Voice working with my Meteor app. Code on the client pings the Twilio server, which then sends a POST request to my server endpoint, including the ‘to’ phone number or customer id in the body.
My endpoint is hit, but req.body is “undefined”:
WebApp.handlers.use('/voice', async (req, res, next) => {
//this code executes:
console.log('req?.body: ', req?.body) //logs "req?.body: undefined"
[.....]
});
How can I capture the POST request parameters?