selenium fetchpdf checkpoint

This commit is contained in:
2025-06-09 19:59:58 +05:30
parent d3cf01b65b
commit f585111b23
8 changed files with 309 additions and 66 deletions

View File

@@ -8,7 +8,7 @@ export interface SeleniumPayload {
}[];
}
export default async function forwardToSeleniumAgent(
export async function forwardToSeleniumAgent(
claimData: any,
files: Express.Multer.File[]
): Promise<any> {
@@ -20,6 +20,13 @@ export default async function forwardToSeleniumAgent(
})),
};
const response = await axios.post("http://localhost:5002/run", payload);
const response = await axios.post("http://localhost:5002/start-workflow", payload);
return response.data;
}
export async function forwardToSeleniumAgent2(
): Promise<any> {
const response = await axios.post("http://localhost:5002/fetch-pdf");
return response.data;
}