good forst commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { jsonResponse, memberApiFetch } from '../../../_lib/api';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export async function POST(req: Request): Promise<Response> {
|
||||
const body = await req.json();
|
||||
const res = await memberApiFetch('/my/opt-out', { method: 'POST', body: JSON.stringify(body) });
|
||||
const payload = await res.json();
|
||||
return jsonResponse(payload, res.status);
|
||||
}
|
||||
Reference in New Issue
Block a user