oms-Draw/Admin/Routes/Web/Backend.php
2024-03-29 15:27:30 +00:00

73 lines
2.2 KiB
PHP
Executable File

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @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,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::DRAW,
],
],
[
'dest' => '\Modules\Draw\Controller\BackendController:viewDrawCreate',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::DRAW,
],
],
],
'^/draw/list(\?.*$|$)' => [
[
'dest' => '\Modules\Draw\Controller\BackendController:viewDrawList',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DRAW,
],
],
],
'^/draw/view(\?.*$|$)' => [
[
'dest' => '\Modules\Draw\Controller\BackendController:setUpDrawEditor',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DRAW,
],
],
[
'dest' => '\Modules\Draw\Controller\BackendController:viewDrawView',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DRAW,
],
],
],
];