oms-Script/Admin/Routes/Web/Backend.php
Dennis Eichhorn 95d730b9ab
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
many bug fixes
2025-03-11 03:09:21 +00:00

70 lines
2.1 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\Script\Controller\BackendController;
use Modules\Script\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/script/template/create(\?.*$|$)' => [
[
'dest' => '\Modules\Script\Controller\BackendController:viewTemplateCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::TEMPLATE,
],
],
],
'^/script/report/create(\?.*$|$)' => [
[
'dest' => '\Modules\Script\Controller\BackendController:viewReportCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::REPORT,
],
],
],
'^/script/list(\?.*$|$)' => [
[
'dest' => '\Modules\Script\Controller\BackendController:viewTemplateList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::REPORT,
],
],
],
'^/script/report/view(\?.*$|$)' => [
[
'dest' => '\Modules\Script\Controller\BackendController:viewScriptReport',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::REPORT,
],
],
],
];