mirror of
https://github.com/Karaka-Management/oms-InvestmentManagement.git
synced 2026-01-11 19:58:41 +00:00
107 lines
4.0 KiB
PHP
Executable File
107 lines
4.0 KiB
PHP
Executable File
<?php declare(strict_types=1);
|
|
|
|
use Modules\InvestmentManagement\Controller\BackendController;
|
|
use Modules\InvestmentManagement\Models\PermissionCategory;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^/finance/investment/list(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentList',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionCategory::INVESTMENT,
|
|
],
|
|
],
|
|
],
|
|
'^/finance/investment/view(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentView',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionCategory::INVESTMENT,
|
|
],
|
|
],
|
|
],
|
|
'^/finance/investment/option/create(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentOptionCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionCategory::INVESTMENT,
|
|
],
|
|
],
|
|
],
|
|
'^/finance/investment/option/view(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentOptionView',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionCategory::INVESTMENT,
|
|
],
|
|
],
|
|
],
|
|
'^/finance/investment/create(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionCategory::INVESTMENT,
|
|
],
|
|
],
|
|
],
|
|
|
|
'^/private/investment/list(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentPrivateList',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionCategory::INVESTMENT,
|
|
],
|
|
],
|
|
],
|
|
'^/private/investment/create(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentPrivateCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionCategory::INVESTMENT,
|
|
],
|
|
],
|
|
],
|
|
'^/private/investment/view(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentView',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionCategory::INVESTMENT,
|
|
],
|
|
],
|
|
],
|
|
];
|