oms-LoanManagement/Admin/Routes/Web/Backend.php
2024-01-26 22:53:59 +00:00

76 lines
2.7 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,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::LOAN,
],
],
],
'^.*/finance/loan/view(\?.*$|$)' => [
[
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanView',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::LOAN,
],
],
],
'^.*/finance/loan/create(\?.*$|$)' => [
[
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanCreate',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::LOAN,
],
],
],
'^.*/finance/loan/table(\?.*$|$)' => [
[
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanTable',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::LOAN,
],
],
],
'^.*/finance/loan/entry/list(\?.*$|$)' => [
[
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanEntryList',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::LOAN,
],
],
],
'^.*/finance/loan/entry/view(\?.*$|$)' => [
[
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanEntryView',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::LOAN,
],
],
],
];