BUG FIX: in index-all route You put the parentheses wrong
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user