Added a table to display inventory on the home page; fixed the item add route
This commit is contained in:
		| @@ -4,6 +4,8 @@ const Item = db.items; | ||||
| // GET - / | ||||
| exports.getIndex = async function (req, res) { | ||||
|   let items = await Item.findAll({}); | ||||
|   console.log(items); | ||||
|   res.render('index.twig'); | ||||
|  | ||||
|   res.render('index.twig', { | ||||
|     inventory: items, | ||||
|   }); | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user