Initial commit
This commit is contained in:
parent
0a8dbfe964
commit
c6f2c5639a
|
|
@ -5,8 +5,12 @@ const app = express();
|
||||||
const port = 3000;
|
const port = 3000;
|
||||||
|
|
||||||
app.use(express.json());
|
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
|
// Mock WhatsApp Webhook
|
||||||
app.post('/whatsapp/webhook', async (req, res) => {
|
app.post('/whatsapp/webhook', async (req, res) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue