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

export async function GET() {
  const items = await listRoletypes();
  return new Response(JSON.stringify({ items }), {
    headers: { "content-type": "application/json" },
  });
}

export const runtime = "nodejs";
