Files
tower/apps/web/app/api/accounts/route.ts
T

7 lines
236 B
TypeScript

const API_URL = process.env.API_URL ?? 'http://localhost:3001';
export async function GET() {
const res = await fetch(`${API_URL}/accounts`, { cache: 'no-store' });
return Response.json(await res.json(), { status: res.status });
}