Skip to content

Open-source status page, incident response and uptime monitoring

348 B
Raw Blame
import { OpenAPIHono } from "@hono/zod-openapi";

import { handleZodError } from "@/libs/errors";

import type { Variables } from "../index";
import { registerHTTPPostCheck } from "./http/post";

const checkApi = new OpenAPIHono<{ Variables: Variables }>({
  defaultHook: handleZodError,
});

registerHTTPPostCheck(checkApi);

export { checkApi };