oms-Profile/Admin/Routes/Web/Backend.php
Dennis Eichhorn 90d0cd4c92 update
2023-08-28 22:06:36 +00:00

66 lines
2.0 KiB
PHP
Executable File

<?php
/**
* Jingga
*
* PHP Version 8.1
*
* @package Modules
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
use Modules\Profile\Controller\BackendController;
use Modules\Profile\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^.*/profile\?.*$' => [
[
'dest' => '\Modules\Profile\Controller\BackendController:setupProfileStyles',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::PROFILE,
],
],
],
'^.*/profile/list.*$' => [
[
'dest' => '\Modules\Profile\Controller\BackendController:viewProfileList',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::PROFILE,
],
],
],
'^.*/profile/single.*$' => [
[
'dest' => '\Modules\Profile\Controller\BackendController:viewProfileSingle',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::PROFILE,
],
],
],
'^.*/admin/module/settings/profile/create.*$' => [
[
'dest' => '\Modules\Profile\Controller\BackendController:viewProfileAdminCreate',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::PROFILE,
],
],
],
];