From 4e616ba466f75f46a9bfccc6af308f3eeb304aef Mon Sep 17 00:00:00 2001 From: MohammadHMazarei Date: Tue, 22 Apr 2025 13:02:02 +0330 Subject: [PATCH] ADD: indexAllTransactions and searchTransactions POST and GET endpoints --- components/transaction/transactionRoutes.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/transaction/transactionRoutes.js b/components/transaction/transactionRoutes.js index 5281f83..3692420 100644 --- a/components/transaction/transactionRoutes.js +++ b/components/transaction/transactionRoutes.js @@ -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'),