13 lines
331 B
TypeScript
13 lines
331 B
TypeScript
export async function POST() {
|
|
const res = await fetch("http://localhost:3051/api/accounts/link", {
|
|
method: "POST"
|
|
});
|
|
const body = await res.text();
|
|
return new Response(body, {
|
|
status: res.status,
|
|
headers: {
|
|
"Content-Type": res.headers.get("content-type") ?? "application/json"
|
|
}
|
|
});
|
|
}
|