The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Organize Code by Subpath in Express

Organize Code by Subpath in Express

3:59
As your application grows, it's easy to end up with a long list of route handlers and helper functions. In this lesson we'll look at strategies for keeping things organized and manageable. We will move individual subpaths into their own file by using `.router` to create an instance of the Express router.
Watch this lesson now
Avatar
egghead.io

As your application grows, it's easy to end up with a long list of route handlers and helper functions. In this lesson we'll look at strategies for keeping things organized and manageable.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?