feat: NATS 连接与 JetStream 流引导(BPOS_EVT/CMD/DLQ)+touch 发布

This commit is contained in:
lovefyf
2026-08-13 01:40:22 +08:00
parent 76296b1623
commit 2a89641ece
3 changed files with 45 additions and 4 deletions
+3 -1
View File
@@ -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;