ADD: delete a category by id DELETE endpoint
This commit is contained in:
@@ -31,4 +31,10 @@ router.patch(
|
||||
categoryController.updateCategory
|
||||
)
|
||||
|
||||
router.delete(
|
||||
'/admin/delete/:categoryId',
|
||||
// perm.requires('deletecategory'),
|
||||
categoryController.deleteCategory
|
||||
)
|
||||
|
||||
module.exports = router
|
||||
|
||||
Reference in New Issue
Block a user