mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-24 05:08:41 +00:00
20 lines
558 B
PHP
20 lines
558 B
PHP
<?php
|
|
|
|
use Modules\Profile\Controller\ApiController;
|
|
use Modules\Profile\Models\PermissionState;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/api/profile.*$' => [
|
|
[
|
|
'dest' => '\Modules\Profile\Controller\ApiController:apiProfileCreate',
|
|
'verb' => RouteVerb::PUT,
|
|
'permission' => [
|
|
'module' => ApiController::MODULE_NAME,
|
|
'type' => PermissionType::CREATE,
|
|
'state' => PermissionState::PROFILE,
|
|
],
|
|
],
|
|
],
|
|
]; |