Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit a4fd91f5 authored by 65160383's avatar 65160383
Browse files

werehouse

parent 7ab1b335
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ router.get('/edit/:id', productController.editProductPage);
router.put('/update/:id', productController.updateProduct);
// ลบสินค้า
router.post('/products/:id/delete', productController.deleteProduct);
router.post('/delete/:id', productController.deleteProduct);
// ค้นหาสินค้า
router.get('/search', productController.searchProducts);
......
......@@ -55,7 +55,7 @@
</form>
<a href="/products/edit/<%= product.id %>"
class="btn btn-warning btn-sm">แก้ไข</a>
<form onsubmit="return confirmDelete()" action="/products/<%= product.id %>/delete" method="POST" style="display: inline;">
<form onsubmit="return confirmDelete()" action="/products/delete/<%= product.id %>" method="POST" style="display: inline;">
<button type="submit" class="btn btn-danger btn-sm">ลบ</button>
</form>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment