mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-20 19:38:41 +00:00
65 lines
2.0 KiB
PHP
65 lines
2.0 KiB
PHP
<?php
|
|
|
|
use phpOMS\Router\RouteVerb;
|
|
use phpOMS\Account\PermissionType;
|
|
use Modules\Profile\Models\PermissionState;
|
|
use Modules\Profile\Controller;
|
|
|
|
return [
|
|
'^.*/backend/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller:setupProfileStyles',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => Controller::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/backend/profile/list.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller:viewProfileList',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => Controller::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/backend/profile/single.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller:viewProfileSingle',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => Controller::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/backend/admin/module/settings/profile/settings.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller:viewProfileAdminSettings',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => Controller::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
'^.*/backend/admin/module/settings/profile/create.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller:viewProfileAdminCreate',
|
|
'verb' => RouteVerb::GET,
|
|
'permission' => [
|
|
'module' => Controller::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
];
|