20 lines
434 B
TypeScript
20 lines
434 B
TypeScript
/**
|
|
* Health check routes
|
|
*/
|
|
import { Hono } from 'hono';
|
|
import { queueManager } from '../services/queue.service';
|
|
|
|
export const healthRoutes = new Hono();
|
|
|
|
// Health check endpoint
|
|
healthRoutes.get('/health', (c) => {
|
|
return c.json({
|
|
service: 'data-service',
|
|
status: 'healthy',
|
|
timestamp: new Date().toISOString(),
|
|
queue: {
|
|
status: 'running',
|
|
workers: queueManager.getWorkerCount()
|
|
}
|
|
});
|
|
});
|