10 lines
283 B
TypeScript
10 lines
283 B
TypeScript
import { jsonResponse, memberApiFetch } from '../../../_lib/api';
|
|
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
export async function GET(): Promise<Response> {
|
|
const res = await memberApiFetch('/my/groups');
|
|
const body = await res.json();
|
|
return jsonResponse(body, res.status);
|
|
}
|