This commit is contained in:
Moe Poi ~ 2021-11-16 15:48:39 +07:00
parent 3ac53b3e65
commit a54af3787c

View file

@ -48,7 +48,7 @@ router.get('/products', (_req, res) => {
}) })
router.get('/product/:id', (req, res) => { router.get('/product/:id', (req, res) => {
product_controller.getProduct(req.params.id).then(data => { controller.getProduct(req.params.id).then(data => {
res.render('pages/product', {data: data}); res.render('pages/product', {data: data});
}) })
}) })