15 lines
446 B
TypeScript
15 lines
446 B
TypeScript
export async function POST() {
|
|
const baseUrl = process.env.LEDGERONE_API_URL ?? "http://localhost:3051";
|
|
const res = await fetch(`${baseUrl}/api/plaid/link-token`, {
|
|
method: "POST",
|
|
headers: { "Content-Type": "application/json" }
|
|
});
|
|
const payload = await res.text();
|
|
return new Response(payload, {
|
|
status: res.status,
|
|
headers: {
|
|
"Content-Type": res.headers.get("content-type") ?? "application/json"
|
|
}
|
|
});
|
|
}
|