260427_01_ENH: 리스트 다이얼로그 및 리스트 작업 시작
This commit is contained in:
@@ -2,7 +2,7 @@ import {NextRequest, NextResponse} from "next/server";
|
||||
import {createContactApi, createIntranetApi} from "@/lib/server-api";
|
||||
import {errorToResponse} from "@/lib/http-util";
|
||||
import {PageResponse, RouteContext} from "@/types/common";
|
||||
import {IntranetProjectSearchResponse, ProjectInfo, ProjectOwnerResponse, ResultCode} from "@/types/project";
|
||||
import {ProjectInfo, ProjectListRequest, ProjectOwnerResponse} from "@/types/project";
|
||||
|
||||
export const GET = async (req: NextRequest, context: RouteContext) => {
|
||||
try {
|
||||
@@ -51,7 +51,7 @@ export const POST = async (req: NextRequest, context: RouteContext) => {
|
||||
const contactApi = await createContactApi();
|
||||
|
||||
if(action === "list"){
|
||||
const body = await req.json().catch(() => null);
|
||||
const body: ProjectListRequest | null = await req.json().catch(() => null);
|
||||
if (!body) {
|
||||
return NextResponse.json(
|
||||
{ message: "요청 바디가 없습니다." },
|
||||
|
||||
Reference in New Issue
Block a user