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

16 lines
258 B
JavaScript

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