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:
2026-11-11 11:34:43 +05:30
parent 1e675d56fa
commit 6c268adbf6
87 changed files with 28466 additions and 2383 deletions
+4
View File
@@ -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';
}
}