nci/resources/builds.js

21 lines
322 B
JavaScript
Raw Normal View History

2015-04-10 19:23:52 +00:00
'use strict';
module.exports = function(data) {
var builds = [{
project: {
name: 'foo'
},
start: Date.now(),
step: 1,
completed: false,
status: 'inprogress'
}];
var resource = data.resource('builds');
resource.use('readAll', function(req, res) {
console.log('readAll');
res.send(builds);
});
};