diff options
Diffstat (limited to 'app/api/nonsap-sync/config/route.ts')
| -rw-r--r-- | app/api/nonsap-sync/config/route.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/api/nonsap-sync/config/route.ts b/app/api/nonsap-sync/config/route.ts new file mode 100644 index 00000000..7441088b --- /dev/null +++ b/app/api/nonsap-sync/config/route.ts @@ -0,0 +1,22 @@ +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 }); + } +}
\ No newline at end of file |
