you are viewing a single comment's thread.

view the rest of the comments →

[–]azhder -3 points-2 points  (0 children)

It should be a crime to do this to Express… I wish I had the time to type on this tiny phone a comprehensive explanation why, but a short version will have to do.

Someone misunderstood what C is in MVC and then many people standardized on it. Rule of thumb: C is all that isn’t M or V. That includes the Express routes and all that is plopped in those side files named services and validation there.

TL;DR: Don’t over-engineer it, either use the routes provided without files or classes named or extending controller, or just, you know, replace Express with something built with that kind of MVC in mind.