BUG FIX: in index-all route You put the parentheses wrong

This commit is contained in:
MohammadHMazarei
2025-04-22 13:00:09 +03:30
parent 46e3c4858d
commit 40bd335d30
+3 -1
View File
@@ -11,7 +11,9 @@ router.get('/admin/get-all', perm.requires('getallbelongings'), belongingControl
router.post('/admin/create', perm.requires('createabelonging'), belongingController.createBelonging) router.post('/admin/create', perm.requires('createabelonging'), belongingController.createBelonging)
router.post('/admin/index-all', perm.requires('indexbelongings', belongingController.indexAllBelongings)) router.post('/admin/index-all', perm.requires('indexbelongings'), belongingController.indexAllBelongings)
router.get('/admin/search', perm.requires('searchbelongings'), belongingController.searchBelongings)
router.get('/admin/get-one/:belongingId', perm.requires('getabelonging'), belongingController.getBelonging) router.get('/admin/get-one/:belongingId', perm.requires('getabelonging'), belongingController.getBelonging)