From 8e134cd051abe14856e63471876a6b78db08b775 Mon Sep 17 00:00:00 2001 From: jmooresafe Date: Tue, 21 Apr 2026 18:33:02 -0400 Subject: [PATCH] Update app.js --- app.js | 72 ++++++++++++++-------------------------------------------- 1 file changed, 17 insertions(+), 55 deletions(-) diff --git a/app.js b/app.js index 5ab128e4b4..d6e96b021d 100644 --- a/app.js +++ b/app.js @@ -1,61 +1,23 @@ const express = require("express"); const app = express(); -const port = process.env.PORT || 3001; -app.get("/", (req, res) => res.type('html').send(html)); +app.use(express.urlencoded({ extended: true })); -const server = app.listen(port, () => console.log(`Example app listening on port ${port}!`)); +app.post("/twilio/voice/incoming", (req, res) => { + const response = ` + + + Good morning. You've reached MJTM Global Enterprises. + How may I help you today? + + + `; -server.keepAliveTimeout = 120 * 1000; -server.headersTimeout = 120 * 1000; + res.type("text/xml"); + res.send(response); +}); -const html = ` - - - - Hello from Render! - - - - - -
- Hello from Render! -
- - -` +const port = process.env.PORT || 10000; +app.listen(port, () => { + console.log("Voice Bridge running on port " + port); +});