oms-Draw/Admin/Routes/Web/Backend.php
2019-04-27 12:05:33 +02:00

61 lines
2.0 KiB
PHP

<?php declare(strict_types=1);
use Modules\Draw\Controller\BackendController;
use Modules\Draw\Models\PermissionState;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^.*/draw/create.*$' => [
[
'dest' => '\Modules\Draw\Controller\BackendController:setUpDrawEditor',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::DRAW,
],
],
[
'dest' => '\Modules\Draw\Controller\BackendController:viewDrawCreate',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE,
'state' => PermissionState::DRAW,
],
],
],
'^.*/draw/list.*$' => [
[
'dest' => '\Modules\Draw\Controller\BackendController:viewDrawList',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::DRAW,
],
],
],
'^.*/draw/single.*$' => [
[
'dest' => '\Modules\Draw\Controller\BackendController:setUpDrawEditor',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::DRAW,
],
],
[
'dest' => '\Modules\Draw\Controller\BackendController:viewDrawSingle',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ,
'state' => PermissionState::DRAW,
],
],
],
];