7 Commits

Author SHA1 Message Date
2e30763da5 Refactor logger and error handling modules
Moved isTrueFromDotEnv to logger.js and updated its usage. Simplified logger import and instantiation across modules. Added errors.js for centralized error exports. Set default error code in DefaultError. Cleaned up unused imports in utils.js.
2026-01-27 04:08:46 +01:00
c531f2c82c Actualiser modules/utils.js 2025-12-31 15:55:09 +01:00
3a6f5b76fb Actualiser modules/logger.js 2025-12-31 15:40:35 +01:00
335aef34e3 Add user GET endpoint, schemas, and security middlewares
Introduces GET /users/:id endpoint with validation schema, adds tests for user and register routes, and applies security middlewares (helmet, hpp, cors) to the server. Also adds ESLint configuration and updates logger with linting comments.
2025-12-22 13:26:13 +01:00
7e1eaf3f1f Add dynamic route matching and validation improvements
Introduces dynamic route parameter support in route path computation and schema matching. Adds a utility for sending validation errors, updates schema definitions to support header validation, and refactors server middleware to handle header, body, and query validation with improved error handling. Also adds a placeholder user route and updates dependencies to include 'path-to-regexp'.
2025-12-20 18:19:03 +01:00
a6a25251ee Delete errors.js 2025-12-16 03:47:29 +01:00
28d51ec760 First commit 2025-12-16 03:43:54 +01:00