8 lines
338 B
TypeScript
8 lines
338 B
TypeScript
const API_URL = process.env.API_URL ?? 'http://localhost:3001';
|
|
|
|
export async function GET(_req: Request, { params }: { params: Promise<{ id: string }> }) {
|
|
const { id } = await params;
|
|
const res = await fetch(`${API_URL}/accounts/${id}/qr`, { cache: 'no-store' });
|
|
return Response.json(await res.json(), { status: res.status });
|
|
}
|