Make app,localization in url optional+tld+subdomain

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

View File

@ -1,11 +1,11 @@
[ [
{ {
"id": 1005401001, "id": 1005401001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Analysis", "name": "Analysis",
"uri": "{/lang}/backend/sales/analysis/overview/dashboard?{?}", "uri": "{/prefix}sales/analysis/overview/dashboard?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 15, "order": 15,
@ -19,7 +19,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Overview", "name": "Overview",
"uri": "{/lang}/backend/sales/analysis/overview/dashboard?{?}", "uri": "{/prefix}sales/analysis/overview/dashboard?{?}",
"target": "self", "target": "self",
"icon": "fa fa-bar-chart", "icon": "fa fa-bar-chart",
"order": 1, "order": 1,
@ -34,7 +34,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Products", "name": "Products",
"uri": "{/lang}/backend/sales/analysis/product/dashboard?{?}", "uri": "{/prefix}sales/analysis/product/dashboard?{?}",
"target": "self", "target": "self",
"icon": "fa fa-tag", "icon": "fa fa-tag",
"order": 1, "order": 1,
@ -49,7 +49,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Customers", "name": "Customers",
"uri": "{/lang}/backend/sales/analysis/customer/dashboard?{?}", "uri": "{/prefix}sales/analysis/customer/dashboard?{?}",
"target": "self", "target": "self",
"icon": "fa fa-users", "icon": "fa fa-users",
"order": 1, "order": 1,
@ -64,7 +64,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Regions", "name": "Regions",
"uri": "{/lang}/backend/sales/analysis/region/dashboard?{?}", "uri": "{/prefix}sales/analysis/region/dashboard?{?}",
"target": "self", "target": "self",
"icon": "fa fa-globe", "icon": "fa fa-globe",
"order": 1, "order": 1,
@ -79,7 +79,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Marketing", "name": "Marketing",
"uri": "{/lang}/backend/sales/analysis/marketing/dashboard?{?}", "uri": "{/prefix}sales/analysis/marketing/dashboard?{?}",
"target": "self", "target": "self",
"icon": "fa fa-paint-brush", "icon": "fa fa-paint-brush",
"order": 1, "order": 1,
@ -94,7 +94,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Employees", "name": "Employees",
"uri": "{/lang}/backend/sales/analysis/employees/dashboard?{?}", "uri": "{/prefix}sales/analysis/employees/dashboard?{?}",
"target": "self", "target": "self",
"icon": "fa fa-building-o", "icon": "fa fa-building-o",
"order": 1, "order": 1,
@ -109,7 +109,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Invoices", "name": "Invoices",
"uri": "{/lang}/backend/sales/analysis/invoices/dashboard?{?}", "uri": "{/prefix}sales/analysis/invoices/dashboard?{?}",
"target": "self", "target": "self",
"icon": "fa fa-envelope", "icon": "fa fa-envelope",
"order": 1, "order": 1,
@ -124,7 +124,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Database", "name": "Database",
"uri": "{/lang}/backend/sales/analysis/invoices/dashboard?{?}", "uri": "{/prefix}sales/analysis/invoices/dashboard?{?}",
"target": "self", "target": "self",
"icon": "fa fa-database", "icon": "fa fa-database",
"order": 1, "order": 1,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb; use phpOMS\Router\RouteVerb;
return [ return [
'^.*/backend/sales/analysis/dashboard.*$' => [ '^.*/sales/analysis/dashboard.*$' => [
[ [
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewBackendDashboard', 'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewBackendDashboard',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -18,7 +18,7 @@ return [
], ],
], ],
'^.*/backend/sales/analysis/overview/dashboard.*$' => [ '^.*/sales/analysis/overview/dashboard.*$' => [
[ [
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewBackendOverviewDashboard', 'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewBackendOverviewDashboard',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,

View File

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