oms-StockTaking/Admin/Routes/Web/Api.php
Dennis Eichhorn da00c47772
Some checks are pending
Image optimization / general_image_workflow (push) Waiting to run
CI / general_module_workflow_php (push) Waiting to run
CI / general_module_workflow_js (push) Waiting to run
bug fixes
2025-04-02 13:33:51 +00:00

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,
],
],
],
];