7.1 게시글 CRUD API 및 페이지 연동 o

This commit is contained in:
koreacomp5
2025-10-09 16:49:06 +09:00
parent f6dc33a42c
commit 7342c9bea2
7 changed files with 136 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ export async function GET(req: Request) {
}
const { page, pageSize, boardId, q, sort = "recent" } = parsed.data;
const where = {
NOT: { status: "deleted" as const },
...(boardId ? { boardId } : {}),
...(q
? {