ADD: delete a category by id DELETE endpoint

This commit is contained in:
MohammadHMazarei
2024-12-29 20:19:49 +03:30
parent f0ab38be23
commit 56e18ab402
+6
View File
@@ -31,4 +31,10 @@ router.patch(
categoryController.updateCategory categoryController.updateCategory
) )
router.delete(
'/admin/delete/:categoryId',
// perm.requires('deletecategory'),
categoryController.deleteCategory
)
module.exports = router module.exports = router