Commit Graph

2 Commits

Author SHA1 Message Date
2a844d275d actualizada API empleados, conectando UI con API
Some checks failed
build-and-deploy / filter (push) Successful in 3s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 13s
build-and-deploy / deploy (push) Successful in 14s
2025-05-30 10:51:21 -06:00
google-labs-jules[bot]
a394c25245 feat: Implement CRUD API endpoints for core modules
Adds Express.js routes and Prisma-based handlers for common database operations (Create, Read, Update, Delete) for the following modules:

- Empleados (subset of Cliente model)
- Asistencias
- Tareas (TareaRealizada model)
- Planillas

Each module's routes are separated into their own files within `api/routes/`. The new routes are registered in `api/server.js`.

Basic error handling, including try-catch blocks and checks for common Prisma errors (e.g., P2025 for record not found, P2003 for foreign key violations), has been implemented in each endpoint.
2025-05-30 06:45:54 +00:00