Skip to content
Permalink
Browse files
  • Loading branch information
aa7401 committed Oct 22, 2019
2 parents 648ead1 + 93cc681 commit c0352909e7b22b7abd3c4cf044920d5108caaef0
Showing 1 changed file with 3 additions and 3 deletions.
@@ -20,8 +20,7 @@ const list = new List()

router.get("/", async function(ctx) {
try {
var items = [] // you will need to add a call to the 'list' object!!!
const items = list.getAll()
var items = [] // you will need to REPLACE this with a call to the 'list' object!!!
console.log(items)
var data = {items}
ctx.render('home', data);
@@ -54,5 +53,6 @@ router.get("/delete/:key", function(ctx) {
}
});

module.exports = app.listen(port, function() {
module.exports = app.listen(port, async function() {
console.log('listening on port ' + port);
});

0 comments on commit c035290

Please sign in to comment.