mirror of
https://github.com/Karaka-Management/oms-Labeling.git
synced 2026-01-11 17:18:41 +00:00
58 lines
2.0 KiB
PHP
58 lines
2.0 KiB
PHP
<?php declare(strict_types=1);
|
|
|
|
use Modules\Labeling\Controller\BackendController;
|
|
use Modules\Labeling\Models\PermissionState;
|
|
use phpOMS\Account\PermissionType;
|
|
use phpOMS\Router\RouteVerb;
|
|
|
|
return [
|
|
'^/warehouse/labeling/item/list(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\Labeling\Controller\BackendController:viewItemList',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::LABEL,
|
|
],
|
|
],
|
|
],
|
|
'^/warehouse/labeling/item(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\Labeling\Controller\BackendController:viewItem',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::LABEL,
|
|
],
|
|
],
|
|
],
|
|
'^/warehouse/labeling/layout(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\Labeling\Controller\BackendController:viewLayout',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::LABEL,
|
|
],
|
|
],
|
|
],
|
|
'^/warehouse/labeling/layout/list(\?.*$|$)' => [
|
|
[
|
|
'dest' => '\Modules\Labeling\Controller\BackendController:viewItemLabelList',
|
|
'verb' => RouteVerb::GET,
|
|
'active' => true,
|
|
'permission' => [
|
|
'module' => BackendController::MODULE_NAME,
|
|
'type' => PermissionType::READ,
|
|
'state' => PermissionState::LABEL,
|
|
],
|
|
],
|
|
],
|
|
];
|