ADD: create a new category POST endpoint

This commit is contained in:
MohammadHMazarei
2024-12-29 19:50:31 +03:30
parent 67b0e810f5
commit 183f458d93
+6
View File
@@ -13,4 +13,10 @@ router.get(
categoryController.getAllCategories categoryController.getAllCategories
) )
router.post(
'/admin/create',
// perm.requires('createcategory'),
categoryController.createCategory
)
module.exports = router module.exports = router