nci/resources/index.js

12 lines
262 B
JavaScript
Raw Normal View History

2015-04-10 19:23:52 +00:00
'use strict';
2015-07-05 17:18:51 +00:00
var _ = require('underscore'),
errorHandler = require('./errorHandler');
2015-04-10 19:23:52 +00:00
module.exports = function(app) {
2015-04-10 19:23:52 +00:00
_(['builds', 'projects']).each(function(resource) {
2015-07-05 17:18:51 +00:00
var resource = require('./' + resource)(app);
resource.use(errorHandler);
2015-04-10 19:23:52 +00:00
});
};