Make app,localization in url optional+tld+subdomain

This commit is contained in:
Dennis Eichhorn 2019-03-09 23:21:29 +01:00
parent fdf0540875
commit c243bffde9
3 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
[ [
{ {
"id": 1002101001, "id": 1002101001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 0, "subtype": 0,
"name": "Purchase", "name": "Purchase",
@ -15,11 +15,11 @@
"children": [ "children": [
{ {
"id": 1002106001, "id": 1002106001,
"pid": "/backend/purchase", "pid": "/purchase",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Analysis", "name": "Analysis",
"uri": "{/lang}/backend/purchase/analysis?{?}", "uri": "{/prefix}purchase/analysis?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 15, "order": 15,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb; use phpOMS\Router\RouteVerb;
return [ return [
'^.*/backend/purchase/invoice/create.*$' => [ '^.*/purchase/invoice/create.*$' => [
[ [
'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseInvoiceCreate', 'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseInvoiceCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/invoice/list.*$' => [ '^.*/purchase/invoice/list.*$' => [
[ [
'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseInvoiceList', 'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseInvoiceList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -28,7 +28,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/article/list.*$' => [ '^.*/purchase/article/list.*$' => [
[ [
'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseArticleList', 'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseArticleList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -39,7 +39,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/article/recommend.*$' => [ '^.*/purchase/article/recommend.*$' => [
[ [
'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseOrderRecommendation', 'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseOrderRecommendation',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -50,7 +50,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/article/create.*$' => [ '^.*/purchase/article/create.*$' => [
[ [
'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseArticleCreate', 'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseArticleCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -61,7 +61,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/article/profile.*$' => [ '^.*/purchase/article/profile.*$' => [
[ [
'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseArticleProfile', 'dest' => '\Modules\Purchase\Controller\BackendController:viewPurchaseArticleProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,

View File

@ -25,7 +25,7 @@
"load": [ "load": [
{ {
"pid": [ "pid": [
"/backend/purchase" "/purchase"
], ],
"type": 4, "type": 4,
"for": 0, "for": 0,
@ -34,7 +34,7 @@
}, },
{ {
"pid": [ "pid": [
"/backend" "/"
], ],
"type": 5, "type": 5,
"from": "Purchase", "from": "Purchase",