import { NextResponse } from "next/server"; import { getQueueStats } from "../../../../services/tuziApiQueueService"; // Endpoint to get queue statistics export async function GET() { try { const stats = getQueueStats(); return NextResponse.json(stats); } catch (error: any) { return NextResponse.json({ error: error.message }, { status: 500 }); } }