diff options
| author | joonhoekim <26rote@gmail.com> | 2025-07-01 10:44:02 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-07-01 10:44:02 +0000 |
| commit | 6e25ab8da8a90a6d9bf40ccc83e36f119fb27568 (patch) | |
| tree | f608ec6315b845b5770c2a357c6540116145cb41 /app/api/nonsap-sync/status/route.ts | |
| parent | af52dbc2b96e619be18dea857ea67d99622092a7 (diff) | |
(김준회) 비활성화한 node-cron 진입점 (instrumentation.ts) 추가 및 NONSAP 동기화 개발건
Diffstat (limited to 'app/api/nonsap-sync/status/route.ts')
| -rw-r--r-- | app/api/nonsap-sync/status/route.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/api/nonsap-sync/status/route.ts b/app/api/nonsap-sync/status/route.ts new file mode 100644 index 00000000..0a847904 --- /dev/null +++ b/app/api/nonsap-sync/status/route.ts @@ -0,0 +1,22 @@ +import { NextResponse } from 'next/server'; +import { getSyncProgressEnhanced } from '../../../../lib/nonsap-sync/enhanced-sync-service'; + +export async function GET() { + try { + const progress = await getSyncProgressEnhanced(); + + return NextResponse.json({ + success: true, + data: progress, + timestamp: new Date().toISOString() + }); + } catch (error) { + console.error('Error getting sync progress:', error); + + return NextResponse.json({ + success: false, + error: 'Failed to get sync progress', + timestamp: new Date().toISOString() + }, { status: 500 }); + } +}
\ No newline at end of file |
