oms-Exchange/Admin/Routes/Web/Backend.php
Dennis Eichhorn f7b477eb52
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:10 +02:00

94 lines
3.0 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\Exchange\Controller\BackendController;
use Modules\Exchange\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^/admin/exchange/import/list(\?.*$|$)' => [
[
'dest' => '\Modules\Exchange\Controller\BackendController:viewExchangeImportList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::IMPORT,
],
],
],
'^/admin/exchange/export/list(\?.*$|$)' => [
[
'dest' => '\Modules\Exchange\Controller\BackendController:viewExchangeExportList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::EXPORT,
],
],
],
'^/admin/exchange/import/view(\?.*$|$)' => [
[
'dest' => '\Modules\Exchange\Controller\BackendController:viewExchangeImport',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::IMPORT,
],
],
],
'^/admin/exchange/export/view(\?.*$|$)' => [
[
'dest' => '\Modules\Exchange\Controller\BackendController:viewExchangeExport',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::EXPORT,
],
],
],
'^/admin/exchange/log/list(\?.*$|$)' => [
[
'dest' => '\Modules\Exchange\Controller\BackendController:viewExchangeLogList',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DASHBOARD,
],
],
],
'^/admin/exchange/log(\?.*$|$)' => [
[
'dest' => '\Modules\Exchange\Controller\BackendController:viewExchangeLog',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::DASHBOARD,
],
],
],
];