ADD: update a category by id PATCH endpoint
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user