mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-15 01:38:39 +00:00
Routings moved to routing files
This commit is contained in:
parent
f2fb841144
commit
8034049ea6
3
Admin/Routes/console.php
Normal file
3
Admin/Routes/console.php
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$consoleRoutes = [];
|
||||||
36
Admin/Routes/http.php
Normal file
36
Admin/Routes/http.php
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$httpRoutes = [
|
||||||
|
'^.*/backend/marketing/promotion/list.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Marketing\Controller:viewMarketingPromotionList',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/marketing/promotion/create.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Marketing\Controller:viewMarketingPromotionCreate',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/marketing/event/list.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Marketing\Controller:viewMarketingEventList',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'result' => ViewType::HTML,
|
||||||
|
'layout' => ViewLayout::MAIN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/backend/marketing/event/create.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\Marketing\Controller:viewMarketingEventCreate',
|
||||||
|
'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,19 +91,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/marketing/promotion/list.*$' => [['dest' => '\Modules\Marketing\Controller:viewMarketingPromotionList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
'^.*/backend/marketing/promotion/create.*$' => [['dest' => '\Modules\Marketing\Controller:viewMarketingPromotionCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
'^.*/backend/marketing/event/list.*$' => [['dest' => '\Modules\Marketing\Controller:viewMarketingEventList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
|
||||||
'^.*/backend/marketing/event/create.*$' => [['dest' => '\Modules\Marketing\Controller:viewMarketingEventCreate', '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