import { NextResponse } from "next/server";

import { rotaDoDono } from "@/lib/fiscal-owner-rota";
import { painelDaLive } from "@/lib/live-owner";

export const dynamic = "force-dynamic";

/** O painel do KtaloguLive: regras, pacotes, compras e uso. */
export async function GET() {
  return rotaDoDono(async ({ admin }) => NextResponse.json(await painelDaLive(admin), { headers: { "Cache-Control": "no-store" } }));
}
