260427_01_ENH: 리스트 다이얼로그 및 리스트 작업 시작

This commit is contained in:
2026-04-27 09:55:51 +09:00
parent 1953b6528b
commit 6944064377
45 changed files with 2560 additions and 419 deletions

View File

@@ -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: "요청 바디가 없습니다." },