mirror of
https://github.com/Karaka-Management/oms-StockTaking.git
synced 2026-01-11 02:28:40 +00:00
36 lines
1.2 KiB
PHP
Executable File
36 lines
1.2 KiB
PHP
Executable File
<?php declare(strict_types=1);
|
|
|
|
use Modules\StockTaking\Controller\ApiController;
|
|
use Modules\StockTaking\Models\PermissionState;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^.*/warehouse/stocktaking(\?.*|$)$' => [
|
|
[
|
|
'dest' => '\Modules\StockTaking\Controller\ApiController:apiStockTakingCreate',
|
|
'verb' => RouteVerb::PUT,
|
|
'csrf' => true,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => ApiController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::STOCK_TAKING_ADMINISTRATION,
|
|
],
|
|
],
|
|
],
|
|
'^.*/warehouse/stocktaking/entry(\?.*|$)$' => [
|
|
[
|
|
'dest' => '\Modules\StockTaking\Controller\ApiController:apiStockTakingEntryCreate',
|
|
'verb' => RouteVerb::SET,
|
|
'csrf' => true,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => ApiController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::STOCK_TAKING_ADMINISTRATION,
|
|
],
|
|
],
|
|
],
|
|
];
|