import { listLanguages } from "@/server/repo/zxdb";

export async function GET() {
  const data = await listLanguages();
  return new Response(JSON.stringify({ items: data }), {
    headers: {
      "content-type": "application/json",
      "cache-control": "public, max-age=0, s-maxage=3600, stale-while-revalidate=86400",
    },
  });
}

export const runtime = "nodejs";
