mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-01-11 16:48:42 +00:00
48 lines
1.3 KiB
PHP
48 lines
1.3 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\Exchange\Controller\ApiController;
|
|
use Modules\Exchange\Models\PermissionCategory;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/admin/exchange/import/view(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\Exchange\Controller\ApiController:apiExchangeImport',
|
|
'verb' => RouteVerb::SET,
|
|
'csrf' => true,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => ApiController::NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionCategory::IMPORT,
|
|
],
|
|
],
|
|
],
|
|
'^.*/admin/exchange/export/view(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\Exchange\Controller\ApiController:apiExchangeExport',
|
|
'verb' => RouteVerb::SET,
|
|
'csrf' => true,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => ApiController::NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionCategory::EXPORT,
|
|
],
|
|
],
|
|
],
|
|
];
|