Make app,localization in url optional+tld+subdomain

This commit is contained in:
Dennis Eichhorn 2019-03-09 23:21:29 +01:00
parent 910ecc6665
commit ac98ceb79b
3 changed files with 11 additions and 11 deletions

View File

@ -1,11 +1,11 @@
[ [
{ {
"id": 1000801001, "id": 1000801001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Surveys", "name": "Surveys",
"uri": "{/lang}/backend/survey/list?{?}", "uri": "{/prefix}survey/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 50, "order": 50,
@ -15,11 +15,11 @@
"children": [ "children": [
{ {
"id": 1000802001, "id": 1000802001,
"pid": "/backend/survey", "pid": "/survey",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/survey/list?{?}", "uri": "{/prefix}survey/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -30,11 +30,11 @@
}, },
{ {
"id": 1000803001, "id": 1000803001,
"pid": "/backend/survey", "pid": "/survey",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/survey/create?{?}", "uri": "{/prefix}survey/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/survey/list.*$' => [ '^.*/survey/list.*$' => [
[ [
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysList', 'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
], ],
], ],
], ],
'^.*/backend/survey/create.*$' => [ '^.*/survey/create.*$' => [
[ [
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysCreate', 'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -28,7 +28,7 @@ return [
], ],
], ],
], ],
'^.*/backend/survey/profile.*$' => [ '^.*/survey/profile.*$' => [
[ [
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysProfile', 'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,

View File

@ -26,7 +26,7 @@
"load": [ "load": [
{ {
"pid": [ "pid": [
"/backend/survey" "/survey"
], ],
"type": 4, "type": 4,
"for": 0, "for": 0,
@ -35,7 +35,7 @@
}, },
{ {
"pid": [ "pid": [
"/backend" "/"
], ],
"type": 5, "type": 5,
"from": "Surveys", "from": "Surveys",