mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-11 15:28:40 +00:00
65 lines
2.2 KiB
PHP
Executable File
65 lines
2.2 KiB
PHP
Executable File
<?php declare(strict_types=1);
|
|
|
|
use Modules\Profile\Controller\BackendController;
|
|
use Modules\Profile\Models\PermissionState;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller\BackendController:setupProfileStyles',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/profile/list.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller\BackendController:viewProfileList',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/profile/single.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller\BackendController:viewProfileSingle',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/admin/module/settings/profile/settings.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller\BackendController:viewProfileAdminSettings',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/admin/module/settings/profile/create.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller\BackendController:viewProfileAdminCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
];
|