Files
2026-06-09 02:02:40 +05:30

14 lines
392 B
TypeScript

import { jsonResponse, memberApiFetch } from '../../../../_lib/api';
export const dynamic = 'force-dynamic';
export async function GET(
_req: Request,
{ params }: { params: Promise<{ id: string }> },
): Promise<Response> {
const { id } = await params;
const res = await memberApiFetch(`/my/groups/${id}`);
const body = await res.json();
return jsonResponse(body, res.status);
}