import { NextRequest, NextResponse } from 'next/server';

export const dynamic = 'force-dynamic';

export async function GET() {
  // Mock sales data for the dashboard
  const metrics = [12500, 18200, 15800, 22400, 19600, 25100, 28900];
  
  return NextResponse.json({
    metrics,
    totalRevenue: metrics.reduce((a, b) => a + b, 0),
    ordersToday: 15,
    avgOrderValue: 89.50,
    topProducts: [
      { name: 'GFS Classic Hoodie', sales: 145, revenue: 11594.55 },
      { name: 'Familiars Tech Tee', sales: 289, revenue: 10110.11 },
      { name: 'Ghost Operator Cap', sales: 178, revenue: 5333.22 },
    ],
  });
}
