Nodejs

Recursively Include Routes in Node.js and Express

Sick of having either massive controller files or 50 million require statements in your Express applications? Here's a simple trick to load everything with 1 line.

2 minute read

Organizing Node.js applications can be a chore. They either have massive route / controller files which cover way too many concerns or they are broken into smaller files with 50 million require statements.