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,
"pid": "/backend",
"pid": "/",
"type": 2,
"subtype": 1,
"name": "Suppliers",
"uri": "{/lang}/backend/purchase/supplier/list?{?}",
"uri": "{/prefix}purchase/supplier/list?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -15,11 +15,11 @@
"children": [
{
"id": 1003202101,
"pid": "/backend/purchase/supplier",
"pid": "/purchase/supplier",
"type": 3,
"subtype": 1,
"name": "List",
"uri": "{/lang}/backend/purchase/supplier/list?{?}",
"uri": "{/prefix}purchase/supplier/list?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -30,11 +30,11 @@
},
{
"id": 1003202201,
"pid": "/backend/purchase/supplier",
"pid": "/purchase/supplier",
"type": 3,
"subtype": 1,
"name": "Create",
"uri": "{/lang}/backend/purchase/supplier/create?{?}",
"uri": "{/prefix}purchase/supplier/create?{?}",
"target": "self",
"icon": null,
"order": 5,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^.*/backend/purchase/supplier/list.*$' => [
'^.*/purchase/supplier/list.*$' => [
[
'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierList',
'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
],
],
],
'^.*/backend/purchase/supplier/create.*$' => [
'^.*/purchase/supplier/create.*$' => [
[
'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierCreate',
'verb' => RouteVerb::GET,
@ -28,7 +28,7 @@ return [
],
],
],
'^.*/backend/purchase/supplier/profile.*$' => [
'^.*/purchase/supplier/profile.*$' => [
[
'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierProfile',
'verb' => RouteVerb::GET,
@ -39,7 +39,7 @@ return [
],
],
],
'^.*/backend/purchase/supplier/analysis.*$' => [
'^.*/purchase/supplier/analysis.*$' => [
[
'dest' => '\Modules\SupplierManagement\Controller\BackendController:viewSupplierManagementSupplierAnalysis',
'verb' => RouteVerb::GET,

View File

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