import type { APIRoute } from "astro";
import componentRegistry from "@cloudflare/kumo/ai/component-registry.json";

export const GET: APIRoute = () => {
  return new Response(JSON.stringify(componentRegistry), {
    status: 200,
    headers: {
      "Content-Type": "application/json",
    },
  });
};
