Phase 5. 연장 신청 관리 구현

This commit is contained in:
2026-06-11 08:56:36 +09:00
parent fbe4caa9e1
commit 5fa387fa96
8 changed files with 810 additions and 7 deletions
+17
View File
@@ -0,0 +1,17 @@
import { NextResponse } from "next/server";
import { auth } from "@/auth";
import { getExtensionRequests } from "@/lib/extension-requests";
export async function GET(request: Request) {
const session = await auth();
if (!session) {
return NextResponse.json({ message: "Unauthorized" }, { status: 401 });
}
const url = new URL(request.url);
const result = await getExtensionRequests(url.searchParams);
return NextResponse.json(result);
}