ezehlivinus

Results 9 comments of ezehlivinus

@Onesco why are the controllers' methods all statics methods?

@Onesco I understand. Static method are used so that one can call the method directly. This is how I do it and it is popular among express developers. Between what...

@anomic30 please check this out and assigned it to me.

@anomic30 If I am to do this, then [the existing error handling code](https://github.com/anomic30/Storz/blob/main/server/controller/errorController.js) may have to move to middleware/ because that is what it is.

routes/user.js was used to test the changes. If this is a good candidate to be merged, then we can update all other files, by removing ` try...catch` blocks.

With respect to error logging. One can either do this ```javascript //const AppError = require AppError from config/ folder ... throw new AppError("Missing required fields" , 400); ``` OR `throw...

> With respect to error logging. One can either do this > > ```js > //const AppError = require AppError from config/ folder > ... > throw new AppError("Missing required...

This Pull Request is due for review and merge. cc/ @anomic30

@anomic30 Check this out and assign it to me.