Gwug 6
This commit is contained in:
parent
3cd696d431
commit
08747ecb3d
2
index.js
2
index.js
|
|
@ -113,6 +113,8 @@ app.get('/', (req, res) => {
|
||||||
|
|
||||||
app.post('/trig', async (req, res) => {
|
app.post('/trig', async (req, res) => {
|
||||||
console.log('Triggering call with data:', req.body);
|
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, () => {
|
app.listen(PORT, HOST, () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue