mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-01-28 05:48:41 +00:00
Routings moved to routing files
This commit is contained in:
parent
5d4d2a3f95
commit
b756593a85
3
Admin/Routes/console.php
Normal file
3
Admin/Routes/console.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
$consoleRoutes = [];
|
||||
26
Admin/Routes/http.php
Normal file
26
Admin/Routes/http.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
$httpRoutes = [
|
||||
'^.*/backend/draw/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Draw\Controller:setUpDrawEditor',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::NULL,
|
||||
],
|
||||
[
|
||||
'dest' => '\Modules\Draw\Controller:viewDrawCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/draw/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Draw\Controller:viewDrawList',
|
||||
'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 = [];
|
||||
|
|
@ -92,20 +92,6 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
protected static $dependencies = [
|
||||
];
|
||||
|
||||
/**
|
||||
* Routing elements.
|
||||
*
|
||||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $routes = [
|
||||
'^.*/backend/draw/create.*$' => [
|
||||
['dest' => '\Modules\Draw\Controller:setUpDrawEditor', 'method' => 'GET', 'type' => ViewLayout::NULL],
|
||||
['dest' => '\Modules\Draw\Controller:viewDrawCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],
|
||||
],
|
||||
'^.*/backend/draw/list.*$' => [['dest' => '\Modules\Draw\Controller:viewDrawList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user