ADD: update a category by id PATCH endpoint
This commit is contained in:
@@ -25,4 +25,10 @@ router.get(
|
||||
categoryController.getCategory
|
||||
)
|
||||
|
||||
router.patch(
|
||||
'/admin/update/:categoryId',
|
||||
// perm.requires('updatecategory'),
|
||||
categoryController.updateCategory
|
||||
)
|
||||
|
||||
module.exports = router
|
||||
|
||||
Reference in New Issue
Block a user