summaryrefslogtreecommitdiff
path: root/app/api/nonsap-sync/config/route.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-07-01 10:44:02 +0000
committerjoonhoekim <26rote@gmail.com>2025-07-01 10:44:02 +0000
commit6e25ab8da8a90a6d9bf40ccc83e36f119fb27568 (patch)
treef608ec6315b845b5770c2a357c6540116145cb41 /app/api/nonsap-sync/config/route.ts
parentaf52dbc2b96e619be18dea857ea67d99622092a7 (diff)
(김준회) 비활성화한 node-cron 진입점 (instrumentation.ts) 추가 및 NONSAP 동기화 개발건
Diffstat (limited to 'app/api/nonsap-sync/config/route.ts')
-rw-r--r--app/api/nonsap-sync/config/route.ts22
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