2026-02-24 21:47:18 +00:00

12 lines
358 B
TypeScript

export async function GET(req: Request) {
const url = new URL(req.url);
const res = await fetch(`http://localhost:3051/api/exports/csv${url.search}`);
const body = await res.text();
return new Response(body, {
status: res.status,
headers: {
"Content-Type": res.headers.get("content-type") ?? "application/json"
}
});
}