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

View File

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

View File

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