mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 14:55:08 +00:00
21 lines
322 B
JavaScript
21 lines
322 B
JavaScript
'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);
|
|
});
|
|
};
|