Files
pa11y-dashboard/route/task.js
Rowan Manning 433aecd972 Initial commit
2013-09-13 16:49:19 +01:00

16 lines
270 B
JavaScript

'use strict';
module.exports = route;
// Route definition
function route (app) {
app.express.get('/:id', function (req, res, next) {
app.webservice.task(req.params.id).get(function (err, task) {
if (err) {
return next();
}
res.send(task);
});
});
}