feat: remove health check from OpenAPI spec

Summary:

Test Plan:
This commit is contained in:
2024-05-15 22:56:02 -04:00
parent 68c082493e
commit 5d19c2fb90

View File

@@ -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;