11 lines
271 B
TypeScript
11 lines
271 B
TypeScript
const BACKEND_URL = process.env.BACKEND_URL;
|
|
|
|
export async function POST(request: Request) {
|
|
const response = await fetch(`${BACKEND_URL}/users/auth`, request);
|
|
|
|
const data = await response.json();
|
|
|
|
return Response.json(data, {
|
|
status: response.status,
|
|
});
|
|
}
|