From 11f66ab77af3546f853cfadb4d139d6de9e07760 Mon Sep 17 00:00:00 2001 From: Ken Javier <64310834+kcjavier21@users.noreply.github.com> Date: Mon, 3 Oct 2022 21:09:36 +0800 Subject: [PATCH] update: changed from post request to get app.post('/outbound/:salesNumber', function(request, response) Must be... app.get('/outbound/:salesNumber', function(request, response) And it will work. --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index cb5389d..9496c7d 100644 --- a/routes/index.js +++ b/routes/index.js @@ -48,7 +48,7 @@ module.exports = function(app) { }); // Return TwiML instructions for the outbound call - app.post('/outbound/:salesNumber', function(request, response) { + app.get('/outbound/:salesNumber', function(request, response) { let result = twilioClient.voiceResponse(request.params.salesNumber); response.send(result); });