diff --git a/index.js b/index.js index ef3931b..baab921 100644 --- a/index.js +++ b/index.js @@ -113,6 +113,8 @@ app.get('/', (req, res) => { app.post('/trig', async (req, res) => { console.log('Triggering call with data:', req.body); + trigCall(req.body.pageType, req.body.phone); + res.status(200).send('Call triggered'); }); app.listen(PORT, HOST, () => {