ADD: update a category by id PATCH endpoint

This commit is contained in:
MohammadHMazarei
2024-12-29 20:04:29 +03:30
parent d4b96da9e3
commit 6675a9d36a
+6
View File
@@ -25,4 +25,10 @@ router.get(
categoryController.getCategory categoryController.getCategory
) )
router.patch(
'/admin/update/:categoryId',
// perm.requires('updatecategory'),
categoryController.updateCategory
)
module.exports = router module.exports = router