feat: remove health check from OpenAPI spec
Summary: Test Plan:
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user