oms-Draw/Admin/Routes/Web/Backend.php
Dennis Eichhorn b3e7c92eae
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:05 +00:00

78 lines
2.4 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\Draw\Controller\BackendController;
use Modules\Draw\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/draw/create(\?.*$|$)' => [
[
'dest' => '\Modules\Draw\Controller\BackendController:setUpDrawEditor',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::DRAW,
],
],
[
'dest' => '\Modules\Draw\Controller\BackendController:viewDrawCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::DRAW,
],
],
],
'^/draw/list(\?.*$|$)' => [
[
'dest' => '\Modules\Draw\Controller\BackendController:viewDrawList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DRAW,
],
],
],
'^/draw/view(\?.*$|$)' => [
[
'dest' => '\Modules\Draw\Controller\BackendController:setUpDrawEditor',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DRAW,
],
],
[
'dest' => '\Modules\Draw\Controller\BackendController:viewDrawView',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DRAW,
],
],
],
];