diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-14 11:54:47 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-14 11:54:47 +0000 |
| commit | 969c25b56f6d29d7ffa4bc2ce04c5fb4e5846b34 (patch) | |
| tree | 551d335e850e6163792ded0e7a75fa41d96d612a /app/api/sync | |
| parent | dd20ba9785cdbd3d61f6b014d003d3bd9646ad13 (diff) | |
(대표님) 정규벤더등록, 벤더문서관리, 벤더데이터입력, 첨부파일관리
Diffstat (limited to 'app/api/sync')
| -rw-r--r-- | app/api/sync/batches/route.ts | 2 | ||||
| -rw-r--r-- | app/api/sync/config/route.ts | 8 | ||||
| -rw-r--r-- | app/api/sync/status/route.ts | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/app/api/sync/batches/route.ts b/app/api/sync/batches/route.ts index 7a72530d..1f37d6e6 100644 --- a/app/api/sync/batches/route.ts +++ b/app/api/sync/batches/route.ts @@ -10,7 +10,7 @@ export async function GET(request: NextRequest) { if (!projectId) { return NextResponse.json( - { error: 'Contract ID is required' }, + { error: 'Vendor ID is required' }, { status: 400 } ) } diff --git a/app/api/sync/config/route.ts b/app/api/sync/config/route.ts index db5d17ca..2e9a073a 100644 --- a/app/api/sync/config/route.ts +++ b/app/api/sync/config/route.ts @@ -6,10 +6,10 @@ import { authOptions } from "@/app/api/auth/[...nextauth]/route" export async function GET(request: NextRequest) { try { const { searchParams } = new URL(request.url) - const projectId = searchParams.get('projectId') + const vendorId = searchParams.get('vendorId') const targetSystem = searchParams.get('targetSystem') || 'SHI' - if (!projectId) { + if (!vendorId) { return NextResponse.json( { error: 'Contract ID is required' }, { status: 400 } @@ -17,7 +17,7 @@ export async function GET(request: NextRequest) { } const config = await syncService.getSyncConfig( - parseInt(projectId), + parseInt(vendorId), targetSystem ) @@ -65,7 +65,7 @@ export async function POST(request: NextRequest) { } await syncService.upsertSyncConfig({ - projectId, + vendorId, targetSystem, endpointUrl, authToken, diff --git a/app/api/sync/status/route.ts b/app/api/sync/status/route.ts index b4b18577..05101d2b 100644 --- a/app/api/sync/status/route.ts +++ b/app/api/sync/status/route.ts @@ -38,7 +38,7 @@ export async function GET(request: NextRequest) { if (!projectId) { return NextResponse.json( - { error: 'Project ID is required' }, + { error: 'project ID is required' }, { status: 400 } ) } |
