This pr makes use of the catch all error middleware in the application. This is because in the aws log when a controller has an error it is not printed to the console and poses a challenge when troubleshooting aws logs for errors.
In the controller I removed the try/catch block so that the exception is now handled by the middleware.
This pr makes use of the catch all error middleware in the application. This is because in the aws log when a controller has an error it is not printed to the console and poses a challenge when troubleshooting aws logs for errors.
In the controller I removed the try/catch block so that the exception is now handled by the middleware.