Skip to content

Open-source status page, incident response and uptime monitoring

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

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

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

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

registerPostPageSubscriber(pageSubscribersApi);