oms-Checklist/Admin/Routes/Web/Backend.php
Dennis Eichhorn 4d2ad3509a
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

106 lines
3.5 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\Checklist\Controller\BackendController;
use Modules\Checklist\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/checklist/list(\?.*$|$)' => [
[
'dest' => '\Modules\Checklist\Controller\BackendController:viewChecklistList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::CHECKLIST,
],
],
],
'^/checklist/view(\?.*$|$)' => [
[
'dest' => '\Modules\Checklist\Controller\BackendController:viewChecklistView',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::CHECKLIST,
],
],
],
'^/checklist/template/list(\?.*$|$)' => [
[
'dest' => '\Modules\Checklist\Controller\BackendController:viewChecklistTemplateList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::TEMPLATE,
],
],
],
'^/checklist/template/create(\?.*$|$)' => [
[
'dest' => '\Modules\Checklist\Controller\BackendController:viewChecklistTemplateCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::TEMPLATE,
],
],
],
'^/checklist/template/view(\?.*$|$)' => [
[
'dest' => '\Modules\Checklist\Controller\BackendController:viewChecklistTemplateView',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::TEMPLATE,
],
],
],
'^/checklist/template/task/view(\?.*$|$)' => [
[
'dest' => '\Modules\Checklist\Controller\BackendController:viewChecklistTemplateTaskView',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::TEMPLATE,
],
],
],
'^/checklist/template/task/create(\?.*$|$)' => [
[
'dest' => '\Modules\Checklist\Controller\BackendController:viewChecklistTemplateTaskCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::TEMPLATE,
],
],
],
];