Files
hipmi/src/app/api/event/get-all-by-userId/route.ts
2024-12-04 17:48:58 +08:00

9 lines
236 B
TypeScript

import { NextResponse } from "next/server";
export async function GET(params: Request) {
const { searchParams } = new URL(params.url);
const userId = searchParams.get("userId");
return NextResponse.json({ userId });
}