2ff36962be
daemon 比對用(leo:daemon 和雲端是連動的)。vitest 2/2 綠(總管親跑)。 (實作=子 CC;驗證+commit=總管)
17 lines
377 B
TypeScript
17 lines
377 B
TypeScript
import { Hono } from 'hono';
|
|
import type { Bindings } from '../types';
|
|
|
|
export const healthRouter = new Hono<{ Bindings: Bindings }>();
|
|
|
|
healthRouter.get('/health', (c) =>
|
|
c.json({ ok: true, bundle_version: c.env.ARCRUN_BUNDLE_VERSION ?? '' })
|
|
);
|
|
|
|
healthRouter.get('/', (c) =>
|
|
c.json({
|
|
service: 'arcrun-cypher-executor',
|
|
version: '1.0.0',
|
|
status: 'ok',
|
|
})
|
|
);
|