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