mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-13 19:18:41 +00:00
Routings moved to routing files
This commit is contained in:
parent
8db887a3c9
commit
119cf9c79d
3
Admin/Routes/console.php
Normal file
3
Admin/Routes/console.php
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$consoleRoutes = [];
|
||||||
76
Admin/Routes/http.php
Normal file
76
Admin/Routes/http.php
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$httpRoutes = [
|
||||||
|
'^.*/backend/admin/settings/general.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Admin\Controller:viewSettingsGeneral',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/admin/account/list.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Admin\Controller:viewAccountList',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/admin/account/settings.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Admin\Controller:viewAccountSettings',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/admin/account/create.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Admin\Controller:viewAccountCreate',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/admin/group/list.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Admin\Controller:viewGroupList',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/admin/group/settings.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Admin\Controller:viewGroupSettings',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/admin/group/create.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Admin\Controller:viewGroupCreate',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/admin/module/list.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Admin\Controller:viewModuleList',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/admin/module/settings.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Admin\Controller:viewModuleProfile',
|
||||||
|
'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 = [];
|
||||||
|
|
@ -90,27 +90,6 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
*/
|
*/
|
||||||
protected static $dependencies = [];
|
protected static $dependencies = [];
|
||||||
|
|
||||||
/**
|
|
||||||
* Routing elements.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
protected static $routes = [
|
|
||||||
'^.*/backend/admin/settings/general.*$' => [['dest' => '\Modules\Admin\Controller:viewSettingsGeneral', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
|
|
||||||
'^.*/backend/admin/account/list.*$' => [['dest' => '\Modules\Admin\Controller:viewAccountList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
'^.*/backend/admin/account/settings.*$' => [['dest' => '\Modules\Admin\Controller:viewAccountSettings', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
'^.*/backend/admin/account/create.*$' => [['dest' => '\Modules\Admin\Controller:viewAccountCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
|
|
||||||
'^.*/backend/admin/group/list.*$' => [['dest' => '\Modules\Admin\Controller:viewGroupList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
'^.*/backend/admin/group/settings.*$' => [['dest' => '\Modules\Admin\Controller:viewGroupSettings', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
'^.*/backend/admin/group/create.*$' => [['dest' => '\Modules\Admin\Controller:viewGroupCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
|
|
||||||
'^.*/backend/admin/module/list.*$' => [['dest' => '\Modules\Admin\Controller:viewModuleList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
'^.*/backend/admin/module/settings.*$' => [['dest' => '\Modules\Admin\Controller:viewModuleProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param RequestAbstract $request Request
|
* @param RequestAbstract $request Request
|
||||||
* @param ResponseAbstract $response Response
|
* @param ResponseAbstract $response Response
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user