Adding more backend encapsulation for User model#154
Conversation
|
Hi @NguyenDa18 looks good to me but I'm wary of changing code from course code that doesn't need fixing. |
|
@bushblade I thought that was what the originalcoursecode was for, and there are some examples of refactoring in the master branch that make the app better -this change also demonstrates good practices that Brad used in his Node API class. |
|
True but all of the refactors so far have solved issues or bugs. |
|
@bushblade Sounds good. Those suggestions sound good as well -implementing separate controllers and middleware like we do in the Node API course. You can just keep the PR open -thanks |
|
No worries. |
Inspired by Brad's design in his NodeJS API Masterclass with Express & MongoDB.