Files
Miles 45cb9fac99 Lots of updates and added functionality.
Added TODO list to readme as well as instructions.
2025-01-23 10:02:08 +00:00

12 lines
331 B
TypeScript

const express = require('express');
const router = express.Router();
const Orders = require('../Models/Orders.ts');
router.get('/', async (req, res) => {
// get orders and pass them to the orders.ejs view
const orders = await Orders.findAll();
res.render('orders', { orders: orders });
});
module.exports = router;