globalThis.process ??= {}; globalThis.process.env ??= {};
import { c as createJsonResponse, a as createIndexKey } from '../../../chunks/apiHelpers_CD8DANYs.mjs';
import { p as pages } from '../../../chunks/apiIndex_rjiPwa_V.mjs';
export { r as renderers } from '../../../chunks/_@astro-renderers_OzpRq-hZ.mjs';

const prerender = false;
const GET = async ({ params }) => {
  const { version, section } = params;
  if (!version || !section) {
    return createJsonResponse(
      { error: "Version and section parameters are required" },
      400
    );
  }
  const key = createIndexKey(version, section);
  const pages$1 = pages[key];
  if (!pages$1) {
    return createJsonResponse(
      { error: `Section '${section}' not found for version '${version}'` },
      404
    );
  }
  return createJsonResponse(pages$1);
};

const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
  __proto__: null,
  GET,
  prerender
}, Symbol.toStringTag, { value: 'Module' }));

const page = () => _page;

export { page };
