feat(tools): implement all real endpoints from Golang_Backend and API docs with 40 real tools across 5 dynamic page archetypes
This commit is contained in:
@@ -131,6 +131,8 @@ export async function POST(req: NextRequest, { params }: { params: { toolId: str
|
||||
const maskArrayBuf = await maskFile.arrayBuffer();
|
||||
options.hasMask = true;
|
||||
options.maskLength = maskArrayBuf.byteLength;
|
||||
options.maskBuffer = Buffer.from(maskArrayBuf);
|
||||
options.maskFilename = maskFile.name || 'mask.png';
|
||||
}
|
||||
|
||||
// If secondary file provided (Two-images fusion / swap)
|
||||
@@ -138,6 +140,8 @@ export async function POST(req: NextRequest, { params }: { params: { toolId: str
|
||||
const secArrayBuf = await secondaryFile.arrayBuffer();
|
||||
options.hasSecondaryImage = true;
|
||||
options.secondaryLength = secArrayBuf.byteLength;
|
||||
options.secondaryBuffer = Buffer.from(secArrayBuf);
|
||||
options.secondaryFilename = secondaryFile.name || 'reference.jpg';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user