blob: 7441088b4528b8c4e0086c5c817b953a1f9c7daa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 });
}
}
|