diff --git a/Admin/Routes/console.php b/Admin/Routes/console.php new file mode 100644 index 0000000..45b4afe --- /dev/null +++ b/Admin/Routes/console.php @@ -0,0 +1,3 @@ + [ + [ + 'dest' => '\Modules\Organization\Controller:viewUnitList', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/unit/profile.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewUnitProfile', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/unit/create.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewUnitCreate', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/department/list.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewDepartmentList', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/department/profile.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewDepartmentProfile', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/department/create.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewDepartmentCreate', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/position/list.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewPositionList', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/position/profile.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewPositionProfile', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/position/create.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewPositionCreate', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], +]; diff --git a/Admin/Routes/socket.php b/Admin/Routes/socket.php new file mode 100644 index 0000000..d80e21c --- /dev/null +++ b/Admin/Routes/socket.php @@ -0,0 +1,3 @@ + [['dest' => '\Modules\Organization\Controller:viewUnitList', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/unit/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/unit/create.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - - '^.*/backend/organization/department/list.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentList', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/department/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/department/create.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - - '^.*/backend/organization/position/list.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionList', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/position/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/position/create.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - ]; - /** * @param RequestAbstract $request Request * @param ResponseAbstract $response Response