Make app,localization in url optional+tld+subdomain

This commit is contained in:
Dennis Eichhorn 2019-03-09 23:21:29 +01:00
parent 6d8fcb2f41
commit 0a169fffc5
3 changed files with 19 additions and 19 deletions

View File

@ -1,11 +1,11 @@
[ [
{ {
"id": 1005104001, "id": 1005104001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Billing", "name": "Billing",
"uri": "{/lang}/backend/sales/invoice/list?{?}", "uri": "{/prefix}sales/invoice/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -15,11 +15,11 @@
"children": [ "children": [
{ {
"id": 1005104101, "id": 1005104101,
"pid": "/backend/sales/invoice", "pid": "/sales/invoice",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/sales/invoice/list?{?}", "uri": "{/prefix}sales/invoice/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -30,11 +30,11 @@
}, },
{ {
"id": 1005104301, "id": 1005104301,
"pid": "/backend/sales/invoice", "pid": "/sales/invoice",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/sales/invoice/create?{?}", "uri": "{/prefix}sales/invoice/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -47,11 +47,11 @@
}, },
{ {
"id": 1005105001, "id": 1005105001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Invoice", "name": "Invoice",
"uri": "{/lang}/backend/purchase/invoice/list?{?}", "uri": "{/prefix}purchase/invoice/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -61,11 +61,11 @@
"children": [ "children": [
{ {
"id": 1005105101, "id": 1005105101,
"pid": "/backend/purchase/invoice", "pid": "/purchase/invoice",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/purchase/invoice/list?{?}", "uri": "{/prefix}purchase/invoice/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -76,11 +76,11 @@
}, },
{ {
"id": 1005105301, "id": 1005105301,
"pid": "/backend/purchase/invoice", "pid": "/purchase/invoice",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/purchase/invoice/create?{?}", "uri": "{/prefix}purchase/invoice/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb; use phpOMS\Router\RouteVerb;
return [ return [
'^.*/backend/sales/invoice/create.*$' => [ '^.*/sales/invoice/create.*$' => [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingInvoiceCreate', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingInvoiceCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
], ],
], ],
], ],
'^.*/backend/sales/invoice/list.*$' => [ '^.*/sales/invoice/list.*$' => [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingInvoiceList', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingInvoiceList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -28,7 +28,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/invoice/create.*$' => [ '^.*/purchase/invoice/create.*$' => [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoiceCreate', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaseInvoiceCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -39,7 +39,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/invoice/list.*$' => [ '^.*/purchase/invoice/list.*$' => [
[ [
'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaInvoiceList', 'dest' => '\Modules\Billing\Controller\BackendController:viewBillingPurchaInvoiceList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,

View File

@ -27,8 +27,8 @@
"load": [ "load": [
{ {
"pid": [ "pid": [
"/backend/sales/billing", "/sales/billing",
"/backend/purchase/billing" "/purchase/billing"
], ],
"type": 4, "type": 4,
"for": 0, "for": 0,
@ -37,7 +37,7 @@
}, },
{ {
"pid": [ "pid": [
"/backend" "/"
], ],
"type": 5, "type": 5,
"from": "Billing", "from": "Billing",