- Integrated express-async-errors to automatically handle errors in async route handlers, enhancing the overall error management in the application. - Updated app.ts to include the express-async-errors import for global error handling. - Removed redundant logging statements in admin and user menu retrieval functions to streamline the code and improve readability. - Adjusted logging levels from info to debug for less critical logs, ensuring that important information is logged appropriately without cluttering the logs. |
||
|---|---|---|
| .. | ||
| authMiddleware.ts | ||
| errorHandler.ts | ||
| permissionMiddleware.ts | ||
| superAdminMiddleware.ts | ||