Update extract.ts

This commit is contained in:
Nicolas 2024-11-20 13:16:36 -08:00
parent 9512d81e05
commit d196b9d93d

View File

@ -32,6 +32,13 @@ const MAX_EXTRACT_LIMIT = 100;
const MAX_RANKING_LIMIT = 10;
const SCORE_THRESHOLD = 0.75;
/**
* Extracts data from the provided URLs based on the request parameters.
* Currently in beta.
* @param req - The request object containing authentication and extraction details.
* @param res - The response object to send the extraction results.
* @returns A promise that resolves when the extraction process is complete.
*/
export async function extractController(
req: RequestWithAuth<{}, ExtractResponse, ExtractRequest>,
res: Response<ExtractResponse>