Started adding results
This commit is contained in:
@ -9,7 +9,7 @@ exports.getIndex = async function(req, res) {
|
||||
|
||||
// GET /test/list - list of tests
|
||||
exports.getList = async function(req, res) {
|
||||
var tests = await Test.findAll();
|
||||
var tests = await Test.findAll({order: [['updatedAt', 'DESC']]});
|
||||
res.render('test/list', {
|
||||
tests: tests
|
||||
});
|
||||
|
Reference in New Issue
Block a user