diff --git a/web.php b/web.php index 29af58d..4f2f758 100644 --- a/web.php +++ b/web.php @@ -11,6 +11,7 @@ use RVR\Controller\OAuthController; use RVR\Controller\UserController; use RVR\Controller\UserSearchController; use RVR\Controller\CommunityController; +use RVR\Controller\TransactionController; use RVR\Repository\UserRepository; require 'app.php'; @@ -76,6 +77,14 @@ Container::$routeCollection->group('communities', function (RouteCollection $rou $routeCollection->post('community-currency-exchange-rates-edit', '{code}/edit', [CommunityController::class, 'saveCurrencyExchangeRate']); $routeCollection->post('community-currency-exchange-rates-delete', '{code}/delete', [CommunityController::class, 'deleteCurrencyExchangeRate']); }); + $routeCollection->group('transactions', function (RouteCollection $routeCollection) { + $routeCollection->get('community.transactions', '', [TransactionController::class, 'getTransactions']); + $routeCollection->get('community.transactions.new', 'new', [TransactionController::class, 'getTransactionEdit']); + $routeCollection->post('community.transactions.new-action', 'new', [TransactionController::class, 'saveTransaction']); + $routeCollection->get('community.transactions.edit', '{transactionId}', [TransactionController::class, 'getTransactionEdit']); + $routeCollection->post('community.transactions.edit-action', '{transactionId}', [TransactionController::class, 'saveTransaction']); + $routeCollection->post('community.transactions.delete', '{transactionId}/delete', [TransactionController::class, 'deleteTransaction']); + }); }); });