Make app,localization in url optional+tld+subdomain

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

View File

@ -1,11 +1,11 @@
[ [
{ {
"id": 1003202001, "id": 1003202001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Suppliers", "name": "Suppliers",
"uri": "{/lang}/backend/purchase/supplier/list?{?}", "uri": "{/prefix}purchase/supplier/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -15,11 +15,11 @@
"children": [ "children": [
{ {
"id": 1003202101, "id": 1003202101,
"pid": "/backend/purchase/supplier", "pid": "/purchase/supplier",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/purchase/supplier/list?{?}", "uri": "{/prefix}purchase/supplier/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -30,11 +30,11 @@
}, },
{ {
"id": 1003202201, "id": 1003202201,
"pid": "/backend/purchase/supplier", "pid": "/purchase/supplier",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/purchase/supplier/create?{?}", "uri": "{/prefix}purchase/supplier/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/purchase/supplier/list.*$' => [ '^.*/purchase/supplier/list.*$' => [
[ [
'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierList', 'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/supplier/create.*$' => [ '^.*/purchase/supplier/create.*$' => [
[ [
'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierCreate', 'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -28,7 +28,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/supplier/profile.*$' => [ '^.*/purchase/supplier/profile.*$' => [
[ [
'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierProfile', 'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -39,7 +39,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/supplier/analysis.*$' => [ '^.*/purchase/supplier/analysis.*$' => [
[ [
'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierAnalysis', 'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierAnalysis',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,

View File

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