mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-25 05:38:40 +00:00
21 lines
580 B
PHP
21 lines
580 B
PHP
<?php declare(strict_types=1);
|
|
|
|
use Modules\Profile\Controller\ApiController;
|
|
use Modules\Profile\Models\PermissionState;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller\ApiController:apiProfileCreate',
|
|
'verb' => RouteVerb::PUT,
|
|
'permission' => [
|
|
'module' => ApiController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
];
|