260630_01_ENH: 배정 반려 기능 추가로 인한 후처리 작업

This commit is contained in:
2026-06-30 17:42:56 +09:00
parent 28d6969cde
commit 0f407e3656
9 changed files with 67 additions and 35 deletions

View File

@@ -57,6 +57,12 @@ export const POST = async (
);
return NextResponse.json(result, { status: 200 });
}
if (action === "reject" && second && third && slug.length === 3) {
const result = await backApi.post<string>(
`/assign/reject/${encodeURIComponent(second)}/${encodeURIComponent(third)}`
);
return NextResponse.json(result, { status: 200 });
}
if(action === "written" && second === "excel-template"){
const result = await backApi.post<ArrayBuffer>(

View File

@@ -78,6 +78,13 @@ export const POST = async (
return withCors(NextResponse.json(result, { status: 200 }));
}
if(action === "assign-reject" && slug.length === 3) {
const result = await backApi.post<string>(
`/assign/reject/${encodeURIComponent(slug[1])}/${encodeURIComponent(slug[2])}`
);
return withCors(NextResponse.json(result, { status: 200 }));
}
if(action === "performance" && slug.length === 2) {
const result = await backApi.get<PerformanceFull>(`/performance/${encodeURIComponent(slug[1])}`)
return withCors(NextResponse.json(result, { status: 200 }));