mirror of
https://github.com/Karaka-Management/oms-ContractManagement.git
synced 2026-01-25 08:08:40 +00:00
32 lines
1.0 KiB
PHP
Executable File
32 lines
1.0 KiB
PHP
Executable File
<?php declare(strict_types=1);
|
|
|
|
use Modules\ContractManagement\Controller\BackendController;
|
|
use Modules\ContractManagement\Models\PermissionState;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/contract/list.*$' => [
|
|
[
|
|
'dest' => '\Modules\ContractManagement\Controller\BackendController:viewContractList',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::CONTRACT,
|
|
],
|
|
],
|
|
],
|
|
'^.*/contract/single.*$' => [
|
|
[
|
|
'dest' => '\Modules\ContractManagement\Controller\BackendController:viewContract',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::CONTRACT,
|
|
],
|
|
],
|
|
],
|
|
];
|