mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-25 06:41:21 +00:00
18 lines
297 B
JavaScript
18 lines
297 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.render('task', {
|
|
task: task
|
|
});
|
|
});
|
|
});
|
|
}
|