mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 06:15:08 +00:00
12 lines
262 B
JavaScript
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);
|
|
});
|
|
};
|