ADD: indexAllTransactions and searchTransactions POST and GET endpoints

This commit is contained in:
MohammadHMazarei
2025-04-22 13:02:02 +03:30
parent f7cfe625fd
commit 4e616ba466
@@ -19,6 +19,18 @@ router.post(
transactionController.createTransaction
)
router.post(
'/admin/index-all',
// perm.requires('getallbelongings'),
transactionController.indexAllTransactions
)
router.get(
'/admin/search',
// perm.requires('getallbelongings'),
transactionController.searchTransactions
)
router.get(
'/admin/belonging/:belongingId/inventory',
// perm.requires('getallbelongings'),