feat: add health check

Summary:

Test Plan:
This commit is contained in:
2024-05-14 22:30:52 -04:00
parent d34a1a4771
commit 6c771eaaad
5 changed files with 65 additions and 5 deletions

View File

@@ -0,0 +1,24 @@
import { OpenAPIHono, createRoute } from "@hono/zod-openapi";
import { SuccessResponse, SuccessResponseSchema } from "~/types/schema";
const app = new OpenAPIHono();
const route = createRoute({
method: "get",
path: "/",
responses: {
200: {
content: {
"application/json": {
schema: SuccessResponseSchema(),
},
},
description: "Retrieve the user",
},
},
});
app.openapi(route, (c) => c.json(SuccessResponse, 200));
export default app;