import { NextRequest, NextResponse } from 'next/server' export async function GET(request: NextRequest) { try { return NextResponse.json({ success: true, message: 'API is working', timestamp: new Date().toISOString() }) } catch (error) { console.error('API Error:', error) return NextResponse.json( { success: false, error: 'Failed to test API' }, { status: 500 } ) } }