mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-01-24 14:58:42 +00:00
32 lines
1009 B
PHP
32 lines
1009 B
PHP
<?php declare(strict_types=1);
|
|
|
|
use Modules\Exchange\Controller\ApiController;
|
|
use Modules\Exchange\Models\PermissionState;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/admin/exchange/import/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Exchange\Controller\ApiController:apiExchangeImport',
|
|
'verb' => RouteVerb::SET,
|
|
'permission' => [
|
|
'module' => ApiController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionState::IMPORT,
|
|
],
|
|
],
|
|
],
|
|
'^.*/admin/exchange/export/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Exchange\Controller\ApiController:apiExchangeExport',
|
|
'verb' => RouteVerb::SET,
|
|
'permission' => [
|
|
'module' => ApiController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionState::EXPORT,
|
|
],
|
|
],
|
|
],
|
|
];
|