forked from external-repos/pa11y-dashboard
Add basic views
This commit is contained in:
@@ -9,7 +9,9 @@ function route (app) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
res.send(tasks);
|
||||
res.render('index', {
|
||||
tasks: tasks
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@@ -5,6 +5,6 @@ module.exports = route;
|
||||
// Route definition
|
||||
function route (app) {
|
||||
app.express.get('/new', function (req, res) {
|
||||
res.send('Create a task');
|
||||
res.render('new');
|
||||
});
|
||||
}
|
||||
|
@@ -9,7 +9,9 @@ function route (app) {
|
||||
if (err) {
|
||||
return next();
|
||||
}
|
||||
res.send(task);
|
||||
res.render('task', {
|
||||
task: task
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user