import { NextResponse } from "next/server";
import { countLaunchClaims } from "@/lib/auth/accounts";
import { LAUNCH_CLAIM_LIMIT } from "@/lib/limits";

export const runtime = "nodejs";
export const dynamic = "force-dynamic";

/** Fortschritt des Launch-Specials ("X von 500 Slots vergeben"). */
export async function GET() {
  const claimed = await countLaunchClaims();
  return NextResponse.json({
    total: LAUNCH_CLAIM_LIMIT,
    claimed,
  });
}
