import { listGenres } from "@/server/repo";

export async function GET() {
  const data = await listGenres();
  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";
