diff --git a/backend/server.js b/backend/server.js index b8fa98e..bff0432 100644 --- a/backend/server.js +++ b/backend/server.js @@ -5,8 +5,12 @@ const app = express(); const port = 3000; app.use(express.json()); -app.use(express.static(path.join(__dirname, '../'))); // Serve static files from parent dir +// Serve static files +app.use(express.static(path.join(__dirname, '../'))); +app.get('/', (req, res) => { + res.sendFile(path.join(__dirname, '../login.html')); +}); // Mock WhatsApp Webhook app.post('/whatsapp/webhook', async (req, res) => {