ADD: get one category by id GET endpoint

This commit is contained in:
MohammadHMazarei
2024-12-29 19:55:42 +03:30
parent ed884c405e
commit f1c7e378a7
+6
View File
@@ -19,4 +19,10 @@ router.post(
categoryController.createCategory categoryController.createCategory
) )
router.get(
'/admin/get-one/:categoryId',
// perm.requires('getcategory'),
categoryController.getCategory
)
module.exports = router module.exports = router