import { proxyToUpstream } from "@/lib/api/upstreamProxy";

type RouteContext = { params: Promise<{ path: string[] }> };

export async function GET(req: Request, context: RouteContext) {
  const { path } = await context.params;
  return proxyToUpstream(req, `/storage/${path.join("/")}`);
}
