Spaces:
Configuration error
Configuration error
postApocalebtic commited on
Commit ·
cc0ce76
1
Parent(s): 753dbc7
Health check add
Browse files
server.js
CHANGED
|
@@ -581,6 +581,11 @@ app.post('/api/external/ask-ai', async (req, res) => {
|
|
| 581 |
}
|
| 582 |
});
|
| 583 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 584 |
app.get('*', (_req, res) => {
|
| 585 |
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
|
| 586 |
});
|
|
|
|
| 581 |
}
|
| 582 |
});
|
| 583 |
|
| 584 |
+
// Add health check endpoint
|
| 585 |
+
app.get('/health', (req, res) => {
|
| 586 |
+
res.status(200).send({ status: 'ok' });
|
| 587 |
+
});
|
| 588 |
+
|
| 589 |
app.get('*', (_req, res) => {
|
| 590 |
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
|
| 591 |
});
|