fraudTech commited on
Commit
7bcedad
·
1 Parent(s): befd099

Add root route handler

Browse files
Files changed (1) hide show
  1. 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() });