diff --git a/src/controllers/health-check/index.ts b/src/controllers/health-check/index.ts index 9870299..939b549 100644 --- a/src/controllers/health-check/index.ts +++ b/src/controllers/health-check/index.ts @@ -1,27 +1,9 @@ -import { OpenAPIHono, createRoute } from "@hono/zod-openapi"; +import { Hono } from "hono"; -import { SuccessResponse, SuccessResponseSchema } from "~/types/schema"; +import { SuccessResponse } from "~/types/schema"; -const app = new OpenAPIHono(); +const app = new Hono(); -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)); +app.get("/", (c) => c.json(SuccessResponse, 200)); export default app;