From 5d19c2fb90c62178cf0464c3fbd1120cf26ca639 Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Wed, 15 May 2024 22:56:02 -0400 Subject: [PATCH] feat: remove health check from OpenAPI spec Summary: Test Plan: --- src/controllers/health-check/index.ts | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) 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;