Closed noamokman closed 8 years ago
Hi there, Just wanted to suggest this way of handling the excess to the express app from the routes file. I made the routes file expose a function that accepts the express app. Therefore we can avoid this line:
var app = module.parent.exports.app;
:clap: so much better thanks @noamokman
Happy to help :+1:
any reason this isn't merged in yet?
updated branch to prevent merge confilcts
Rebased and merged to master. Thank you
Hi there, Just wanted to suggest this way of handling the excess to the express app from the routes file. I made the routes file expose a function that accepts the express app. Therefore we can avoid this line: