fix ( event )

deskripsi:
- fix API detail dan pindah list peserta ke halaman beebeda
This commit is contained in:
2025-01-20 15:49:00 +08:00
parent 1f46b6bfec
commit 2feb461c5b
15 changed files with 313 additions and 168 deletions

View File

@@ -1,8 +1,16 @@
import { event_funCheckKehadiran } from "@/app_modules/event/fun";
import { NextResponse } from "next/server";
export async function GET(req: Request) {
const { searchParams } = new URL(req.url);
export async function GET(request: Request) {
const method = request.method;
if (method !== "GET") {
return NextResponse.json(
{ success: false, message: "Method not allowed" },
{ status: 405 }
);
}
const { searchParams } = new URL(request.url);
const userId = searchParams.get("userId");
const eventId = searchParams.get("eventId");