Commit Graph
15 Commits
Author SHA1 Message Date
azures04 8a025cdc70 Actualiser server.js 2026-03-19 21:34:18 +01:00
azures04 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
azures04 c531f2c82c Actualiser modules/utils.js 2025-12-31 15:55:09 +01:00
azures04 3a6f5b76fb Actualiser modules/logger.js 2025-12-31 15:40:35 +01:00
azures04 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
azures04 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
azures04 18efd445e5 Added a better error handling 2025-12-20 15:48:57 +01:00
azures04 f6f4a249c1 Update README.md 2025-12-16 03:59:35 +01:00
azures04 6aaf1fd567 Update README.md 2025-12-16 03:56:45 +01:00
azures04 e66544c306 Update README.md 2025-12-16 03:55:46 +01:00
azures04 da31a8a6bb Actualiser README.md 2025-12-16 03:52:39 +01:00
azures04 2ee8c75269 Actualiser README.md 2025-12-16 03:52:22 +01:00
azures04 a6a25251ee Delete errors.js 2025-12-16 03:47:29 +01:00
azures04 28d51ec760 First commit 2025-12-16 03:43:54 +01:00
azures04 962582e906 Initial commit 2025-12-16 00:28:20 +01:00