mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-11 15:48:42 +00:00
118 lines
3.8 KiB
PHP
Executable File
118 lines
3.8 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\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(\?.*$|$)' => [
|
|
[
|
|
'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,
|
|
],
|
|
],
|
|
],
|
|
];
|