import type { APIRoute } from "astro";
import { handleCmsApi } from "../../../lib/cms-api";

export const prerender = false;

const handler: APIRoute = ({ request, params, clientAddress }) =>
  handleCmsApi(request, params.route || "", clientAddress);

export const GET = handler;
export const POST = handler;
export const PUT = handler;
export const PATCH = handler;
export const DELETE = handler;
