nci/resources/index.js
2015-07-05 20:18:51 +03:00

12 lines
262 B
JavaScript

'use strict';
var _ = require('underscore'),
errorHandler = require('./errorHandler');
module.exports = function(app) {
_(['builds', 'projects']).each(function(resource) {
var resource = require('./' + resource)(app);
resource.use(errorHandler);
});
};