2026-08-12 15:18:51 +08:00

16 lines
409 B
TypeScript

import { Hono } from "hono";
import type { HealthResponse } from "@great-agent/web-contracts";
export function createHealthRoutes(): Hono {
const routes = new Hono();
routes.get("/health", (context) => {
const response: HealthResponse = {
status: "ok",
service: "great-agent2",
timestamp: new Date().toISOString(),
};
return context.json(response);
});
return routes;
}