How to modularize routes with the Express Router

If you’re building in Node.js with the Express.js framework, you’ve probably used the Router class at some point in your day-to-day development. The Express Router is a powerful feature that was introduced in Express 4, a sort of mini Express application for just middleware and routing. It also gives us the ability to create modularized routers that are mountable, composable, and extensible — making your code base a lot easier to manage »