veamo
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m6s

This commit is contained in:
2025-11-22 01:10:37 -06:00
parent 2500cb1181
commit 0bdb5013f7
6 changed files with 254 additions and 4 deletions

View File

@@ -18,6 +18,14 @@ export default defineEventHandler(async (event) => {
})
}
const isUuid = /^[0-9a-fA-F-]{36}$/.test(id)
if (!isUuid) {
throw createError({
statusCode: 400,
statusMessage: 'ID de lote inválido',
})
}
// Obtener trazabilidad completa
const trazabilidad = await getTrazabilidad(id)