globalThis.process ??= {}; globalThis.process.env ??= {};
import { c as createJsonResponse, a as createIndexKey } from '../../chunks/apiHelpers_CD8DANYs.mjs';
import { s as sections } 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 } = params;
  if (!version) {
    return createJsonResponse(
      { error: "Version parameter is required" },
      400
    );
  }
  const key = createIndexKey(version);
  const sections$1 = sections[key];
  if (!sections$1) {
    return createJsonResponse({ error: `Version '${version}' not found` }, 404);
  }
  return createJsonResponse(sections$1);
};

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

const page = () => _page;

export { page };
