16 lines
409 B
TypeScript
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;
|
|
}
|