feat: NATS 连接与 JetStream 流引导(BPOS_EVT/CMD/DLQ)+touch 发布
This commit is contained in:
+3
-1
@@ -1,7 +1,9 @@
|
||||
import { Hono } from 'hono';
|
||||
import { healthRoute } from './health';
|
||||
import { healthRoute, registerHealthCheck } from './health';
|
||||
import { checkNats } from '../shared/bus/nats';
|
||||
|
||||
export function buildApp(): Hono {
|
||||
registerHealthCheck('nats', checkNats);
|
||||
const app = new Hono();
|
||||
app.route('/health', healthRoute());
|
||||
return app;
|
||||
|
||||
Reference in New Issue
Block a user