oms-QA/Admin/Routes/Web/Backend.php
Dennis Eichhorn 02898279ac
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 version and bugs
2024-05-21 00:09:16 +02:00

118 lines
3.8 KiB
PHP
Executable File

<?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\QA\Controller\BackendController;
use Modules\QA\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/admin/module/settings\?id=QA&app=.*?$' => [
[
'dest' => '\Modules\QA\Controller\BackendController:viewAppSettings',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => \Modules\Admin\Models\PermissionCategory::MODULE,
],
],
],
'^/qa/.*' => [
[
'dest' => '\Modules\QA\Controller\BackendController:setUpBackend',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::QA,
],
],
],
'^/qa/dashboard(\?.*$|$)' => [
[
'dest' => '\Modules\QA\Controller\BackendController:viewQADashboard',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::QA,
],
],
],
'^/qa/question/view(\?.*$|$)' => [
[
'dest' => '\Modules\QA\Controller\BackendController:viewQADoc',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::QUESTION,
],
],
],
'^/qa/question/create(\?.*$|$)' => [
[
'dest' => '\Modules\QA\Controller\BackendController:viewQAQuestionCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::QUESTION,
],
],
],
'^/qa/app/list(\?.*$|$)' => [
[
'dest' => '\Modules\QA\Controller\BackendController:viewQAAppList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::APP,
],
],
],
'^/qa/app/view(\?.*$|$)' => [
[
'dest' => '\Modules\QA\Controller\BackendController:viewQAApp',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::APP,
],
],
],
'^/qa/app/create(\?.*$|$)' => [
[
'dest' => '\Modules\QA\Controller\BackendController:viewQAAppCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::APP,
],
],
],
];