Spaces:
Runtime error
Runtime error
Add root route handler
Browse files- gateway.ts +10 -0
gateway.ts
CHANGED
|
@@ -64,6 +64,16 @@ const authenticateToken = (req: express.Request, res: express.Response, next: ex
|
|
| 64 |
|
| 65 |
// Routes
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
// Health check
|
| 68 |
app.get('/health', (req, res) => {
|
| 69 |
res.json({ status: 'ok', service: 'gateway', timestamp: new Date().toISOString() });
|
|
|
|
| 64 |
|
| 65 |
// Routes
|
| 66 |
|
| 67 |
+
// Root route
|
| 68 |
+
app.get('/', (req, res) => {
|
| 69 |
+
res.json({
|
| 70 |
+
service: 'EVO Gateway',
|
| 71 |
+
status: 'running',
|
| 72 |
+
version: '1.0.0',
|
| 73 |
+
endpoints: ['/auth/login', '/auth/register', '/api/chat', '/health']
|
| 74 |
+
});
|
| 75 |
+
});
|
| 76 |
+
|
| 77 |
// Health check
|
| 78 |
app.get('/health', (req, res) => {
|
| 79 |
res.json({ status: 'ok', service: 'gateway', timestamp: new Date().toISOString() });
|