fix: OCR API error
All checks were successful
Deploy to Staging / Build Images (push) Successful in 7m45s
Deploy to Staging / Deploy to Staging (push) Successful in 51s
Deploy to Staging / Verify Staging (push) Successful in 2m31s
Deploy to Staging / Notify Staging Ready (push) Successful in 8s
Deploy to Staging / Notify Staging Failure (push) Has been skipped

This commit is contained in:
Eric Gullickson
2026-02-06 13:01:32 -06:00
parent 88db803b6a
commit 66314a0493
6 changed files with 244 additions and 26 deletions

View File

@@ -17,6 +17,12 @@ export const ocrRoutes: FastifyPluginAsync = async (
handler: ctrl.extract.bind(ctrl),
});
// POST /api/ocr/extract/vin - VIN-specific OCR extraction
fastify.post('/ocr/extract/vin', {
preHandler: [requireAuth],
handler: ctrl.extractVin.bind(ctrl),
});
// POST /api/ocr/jobs - Submit async OCR job
fastify.post('/ocr/jobs', {
preHandler: [requireAuth],