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

export const dynamic = 'force-dynamic';

export async function GET() {
  try {
  return NextResponse.json({ orders: [] });} catch (error) {
    console.error('[SwagStore] GET error:', error);
    return NextResponse.json({ error: 'Internal server error' }, { status: 500 });
  }
}

export async function POST(request: NextRequest) {
  try {
  return NextResponse.json({ success: true, orderId: `ORD-${Date.now()}` });} catch (error) {
    console.error('[SwagStore] POST error:', error);
    return NextResponse.json({ error: 'Internal server error' }, { status: 500 });
  }
}
