forked from external-repos/pa11y-dashboard
Initial commit
This commit is contained in:
15
route/index.js
Normal file
15
route/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
'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);
|
||||
});
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user