260630_01_ENH: 배정 반려 기능 추가로 인한 후처리 작업
This commit is contained in:
@@ -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>(
|
||||
|
||||
@@ -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 }));
|
||||
|
||||
Reference in New Issue
Block a user