oms-HumanResourceManagement/Admin/Routes/Web/Backend.php

54 lines
1.9 KiB
PHP
Executable File

<?php declare(strict_types=1);
use Modules\HumanResourceManagement\Controller\BackendController;
use Modules\HumanResourceManagement\Models\PermissionState;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^.*/humanresource/staff/list.*$' => [
[
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrStaffList',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::HR,
],
],
],
'^.*/humanresource/staff/profile.*$' => [
[
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrStaffProfile',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::HR,
],
],
],
'^.*/humanresource/staff/create.*$' => [
[
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrStaffCreate',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::HR,
],
],
],
'^.*/humanresource/department/list.*$' => [
[
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrDepartmentList',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::DEPARTMENT,
],
],
],
];