combine.fm/lib/services.js

12 lines
274 B
JavaScript
Raw Normal View History

2015-06-03 21:45:54 -07:00
import path from 'path';
import fs from 'fs';
2015-01-06 12:58:57 +00:00
module.exports = [];
2015-06-03 21:45:54 -07:00
fs.readdirSync(path.join(__dirname, 'services')).forEach(function(file) {
var service = require(path.join(__dirname, 'services', file));
2015-01-06 12:58:57 +00:00
if (service.search) {
module.exports.push(service);
}
});