Update voiceai-server.js
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
cat > /tmp/server.js << 'ENDOFFILE'
|
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const twilio = require('twilio');
|
const twilio = require('twilio');
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
@@ -56,5 +55,4 @@ app.post('/respond',async(req,res)=>{
|
|||||||
res.type('text/xml');res.send(t.toString());
|
res.type('text/xml');res.send(t.toString());
|
||||||
});
|
});
|
||||||
app.get('/health',(req,res)=>res.json({status:'online',service:'VoiceAI'}));
|
app.get('/health',(req,res)=>res.json({status:'online',service:'VoiceAI'}));
|
||||||
app.listen(PORT,'0.0.0.0',()=>console.log('VoiceAI running on port '+PORT));
|
app.listen(PORT,'0.0.0.0',()=>console.log('VoiceAI running on port '+PORT));
|
||||||
ENDOFFILE
|
|
||||||
Reference in New Issue
Block a user