combine.fm/lib/services.js

14 lines
317 B
JavaScript
Raw Normal View History

2015-01-06 12:58:57 +00:00
"use strict";
var path = require('path');
var Promise = require("bluebird");
module.exports = [];
require("fs").readdirSync(path.join(__dirname, "services")).forEach(function(file) {
var service = require(path.join(__dirname, "services", file));
if (service.search) {
module.exports.push(service);
}
});