import { OpenAPIHono, createRoute } from "@hono/zod-openapi"; import { SuccessResponse, SuccessResponseSchema } from "~/types/schema"; const app = new OpenAPIHono(); const route = createRoute({ method: "get", path: "/", summary: "Health check", operationId: "healthCheck", tags: ["aniplay"], responses: { 200: { content: { "application/json": { schema: SuccessResponseSchema(), }, }, description: "Server is up and running!", }, }, }); app.openapi(route, (c) => c.json(SuccessResponse, 200)); export default app;