mirror of
https://github.com/Karaka-Management/oms-Purchase.git
synced 2026-01-28 23:38:41 +00:00
Routings moved to routing files
This commit is contained in:
parent
9d7ec5febb
commit
0da83a1554
3
Admin/Routes/console.php
Normal file
3
Admin/Routes/console.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
$consoleRoutes = [];
|
||||
52
Admin/Routes/http.php
Normal file
52
Admin/Routes/http.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
|
||||
$httpRoutes = [
|
||||
'^.*/backend/purchase/invoice/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Purchase\Controller:viewPurchaseInvoiceCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/purchase/invoice/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Purchase\Controller:viewPurchaseInvoiceList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/purchase/article/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Purchase\Controller:viewPurchaseArticleList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/purchase/article/recommend.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Purchase\Controller:viewPurchaseOrderRecommendation',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/purchase/article/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Purchase\Controller:viewPurchaseArticleCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'result' => ViewType::HTML,
|
||||
'layout' => ViewLayout::MAIN,
|
||||
],
|
||||
],
|
||||
'^.*/backend/purchase/article/profile.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Purchase\Controller:viewPurchaseArticleProfile',
|
||||
'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,22 +91,6 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
protected static $dependencies = [
|
||||
];
|
||||
|
||||
/**
|
||||
* Routing elements.
|
||||
*
|
||||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $routes = [
|
||||
'^.*/backend/purchase/invoice/create.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseInvoiceCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/purchase/invoice/list.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseInvoiceList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
|
||||
'^.*/backend/purchase/article/list.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseArticleList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/purchase/article/recommend.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseOrderRecommendation', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/purchase/article/create.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseArticleCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
'^.*/backend/purchase/article/profile.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseArticleProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user