mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-11 19:38:40 +00:00
Routings moved to routing files
This commit is contained in:
parent
ed821b14e3
commit
810941629d
3
Admin/Routes/console.php
Normal file
3
Admin/Routes/console.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
$consoleRoutes = [];
|
||||
84
Admin/Routes/http.php
Normal file
84
Admin/Routes/http.php
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
<?php
|
||||
|
||||
$httpRoutes = [
|
||||
'^.*/backend/controlling/riskmanagement/cockpit.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskCockpit',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/controlling/riskmanagement/risk/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/controlling/riskmanagement/cause/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskCauseList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/controlling/riskmanagement/solution/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskSolutionList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/controlling/riskmanagement/unit/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskUnitList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/controlling/riskmanagement/department/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskDepartmentList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/controlling/riskmanagement/category/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskCategoryList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/controlling/riskmanagement/project/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskProjectList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/controlling/riskmanagement/process/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskProcessList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/controlling/riskmanagement/settings/dashboard.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\RiskManagement\Controller:viewRiskSettings',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
];
|
||||
3
Admin/Routes/socket.php
Normal file
3
Admin/Routes/socket.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
$socketRoutes = [];
|
||||
|
|
@ -91,25 +91,6 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
protected static $dependencies = [
|
||||
];
|
||||
|
||||
/**
|
||||
* Routing elements.
|
||||
*
|
||||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $routes = [
|
||||
'^.*/backend/controlling/riskmanagement/cockpit.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskCockpit', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/controlling/riskmanagement/risk/list.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/controlling/riskmanagement/cause/list.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskCauseList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/controlling/riskmanagement/solution/list.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskSolutionList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/controlling/riskmanagement/unit/list.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskUnitList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/controlling/riskmanagement/department/list.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskDepartmentList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/controlling/riskmanagement/category/list.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskCategoryList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/controlling/riskmanagement/project/list.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskProjectList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/controlling/riskmanagement/process/list.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskProcessList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/controlling/riskmanagement/settings/dashboard.*$' => [['dest' => '\Modules\RiskManagement\Controller:viewRiskSettings', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user