import { NextResponse } from 'next/server'; const AUTH_API_BASE = process.env.AUTH_API_BASE ?? 'https://ebay.backend.data4autos.com'; export async function POST(req: Request) { const body = await req.json(); // Forward to your backend const upstream = await fetch(`${AUTH_API_BASE}/api/auth/signup`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body), }); const contentType = upstream.headers.get('content-type') ?? 'application/json'; const buf = await upstream.arrayBuffer(); return new Response(buf, { status: upstream.status, headers: { 'content-type': contentType }, }); } export async function GET() { return NextResponse.json({ ok: true }); }