oms-LoanManagement/Admin/Routes/Web/Backend.php
Dennis Eichhorn 7707a72946 ui fixes
2024-04-07 17:31:42 +00:00

58 lines
2.0 KiB
PHP
Executable File

<?php declare(strict_types=1);
use Modules\LoanManagement\Controller\BackendController;
use Modules\LoanManagement\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/finance/loan/list(\?.*$|$)' => [
[
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::LOAN,
],
],
],
'^/finance/loan/view(\?.*$|$)' => [
[
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanView',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::LOAN,
],
],
],
'^/finance/loan/create(\?.*$|$)' => [
[
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::LOAN,
],
],
],
'^/finance/loan/table(\?.*$|$)' => [
[
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanTable',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::LOAN,
],
],
],
];