Phase 6. 업그레이드 신청 관리 구현

This commit is contained in:
2026-06-11 09:06:26 +09:00
parent 5fa387fa96
commit 605f6bcdf0
6 changed files with 870 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
import { NextResponse } from "next/server";
import { auth } from "@/auth";
import { getUpgradeRequests } from "@/lib/upgrade-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 getUpgradeRequests(url.searchParams);
return NextResponse.json(result);
}