mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Use the ES6 linting rules from the website (#138)
This commit is contained in:
@@ -20,12 +20,12 @@ module.exports = route;
|
||||
// Route definition
|
||||
function route(app) {
|
||||
|
||||
app.express.get('/:id/run', function(req, res, next) {
|
||||
app.webservice.task(req.params.id).run(function(err) {
|
||||
app.express.get('/:id/run', (req, res, next) => {
|
||||
app.webservice.task(req.params.id).run(err => {
|
||||
if (err) {
|
||||
return next();
|
||||
}
|
||||
res.redirect('/' + req.params.id + '?running');
|
||||
res.redirect(`/${req.params.id}?running`);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user