furtivefelon
Joined 18 years ago
Karma
114
Submissions
52
Member since
Feb 18
Feel free to contact me at [email protected] :)
View on Hacker NewsJoined 18 years ago
Not too sure why this surprises anyone...
I believe he also primed the pumps a couple of monthes in advance with Codinghorror, I was reading both at that time.
include it in routes/index.js, and everything in your routes dir will be exposed if you do var routes = require('./routes')
var files = fs.readdirSync('./routes') files.forEach(function(file){ if(file != 'index.js'){ var exp = require('./'+file); _.extend(exports, exp); } });