oms-ClientManagement/Admin/Routes/Web/Backend.php
Dennis Eichhorn 9ad146c978
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix permissions
2025-04-02 14:15:04 +00:00

130 lines
4.6 KiB
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
use Modules\ClientManagement\Controller\BackendController;
use Modules\ClientManagement\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/sales/client/attribute/type/list(\?.*$|$)' => [
[
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementAttributeTypeList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::ATTRIBUTE,
],
],
],
'^/sales/client/attribute/type/view(\?.*$|$)' => [
[
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementAttributeType',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::ATTRIBUTE,
],
],
],
'^/sales/client/attribute/type/create(\?.*$|$)' => [
[
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementAttributeType',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::ATTRIBUTE,
],
],
],
'^/sales/client/attribute/value/view(\?.*$|$)' => [
[
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementAttributeValue',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::ATTRIBUTE,
],
],
],
'^/sales/client/attribute/value/create(\?.*$|$)' => [
[
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementAttributeValueCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::ATTRIBUTE,
],
],
],
'^/sales/client/list(\?.*$|$)' => [
[
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::CLIENT,
],
],
],
'^/sales/client/create(\?.*$|$)' => [
[
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::CLIENT,
],
],
],
'^/sales/client/view(\?.*$|$)' => [
[
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientView',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::CLIENT,
],
],
],
'^/sales/client/analysis(\?.*$|$)' => [
[
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientAnalysis',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::ANALYSIS,
],
],
],
];