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

export const dynamic = 'force-dynamic';

export async function GET() {
  try {
  return NextResponse.json({
    lowStock: [
      { id: '3', name: 'Ghost Operator Cap', stock: 8 },
      { id: '5', name: 'Familiars Winter Coat', stock: 5 },
    ],
    orders: [
      { id: 'ORD-001', customer: 'John Smith', status: 'processing', total: 129.98 },
      { id: 'ORD-002', customer: 'Jane Doe', status: 'completed', total: 79.99 },
    ],
  });} catch (error) {
    console.error('[SwagStore] GET error:', error);
    return NextResponse.json({ error: 'Internal server error' }, { status: 500 });
  }
}
