globalThis.process ??= {}; globalThis.process.env ??= {};
import { c as createJsonResponse } from '../../chunks/apiHelpers_DEg9ljrb.mjs';
import { f as fetchApiIndex } from '../../chunks/fetch_CoXtH9RF.mjs';
export { r as renderers } from '../../chunks/_@astro-renderers_OzpRq-hZ.mjs';

const prerender = false;
const GET = async ({ url }) => {
  try {
    const index = await fetchApiIndex(url);
    return createJsonResponse(index.versions);
  } catch (error) {
    return createJsonResponse(
      { error: "Failed to load API index", details: error },
      500
    );
  }
};

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

const page = () => _page;

export { page };
