import { NextResponse } from 'next/server'; import { getSyncConfigInfo } from '@/lib/nonsap-sync/sync-config'; export async function GET() { try { const config = getSyncConfigInfo(); return NextResponse.json({ success: true, data: config, timestamp: new Date().toISOString() }); } catch (error) { console.error('Failed to get sync config:', error); return NextResponse.json({ success: false, error: 'Failed to get sync config', timestamp: new Date().toISOString() }, { status: 500 }); } }