const fs = require('fs') // load all files in models directory fs.readdirSync(__dirname + '/models').forEach(function(filename){ require(__dirname + '/models/' + filename) })
Last updated 5 years ago
Was this helpful?