Fix : Event scanbarcode

This commit is contained in:
2024-12-04 15:45:55 +08:00
parent 9a9bbe3bd6
commit 5917a1b8d0
6 changed files with 71 additions and 30 deletions

View File

@@ -0,0 +1,15 @@
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);
const userId = searchParams.get("userId");
const eventId = searchParams.get("eventId");
const res = await event_funCheckKehadiran({
eventId: eventId as string,
userId: userId as string,
});
return NextResponse.json({ res });
}