import { proxy } from "@/lib/clipper"; import { errorResponse } from "@/lib/http"; export const dynamic = "force-dynamic"; type Ctx = { params: Promise<{ path: string[] }> }; /** Repassa a página /clipper ao serviço do Clipador (lista de caminhos permitidos em lib/clipper.ts). */ async function handle(request: Request, ctx: Ctx): Promise { try { return await proxy(request, (await ctx.params).path); } catch (error) { return errorResponse(error); } } export { handle as GET, handle as POST, handle as PATCH, handle as PUT, handle as DELETE };