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

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^.*/backend/survey/list.*$' => [
'^.*/survey/list.*$' => [
[
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysList',
'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
],
],
],
'^.*/backend/survey/create.*$' => [
'^.*/survey/create.*$' => [
[
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysCreate',
'verb' => RouteVerb::GET,
@ -28,7 +28,7 @@ return [
],
],
],
'^.*/backend/survey/profile.*$' => [
'^.*/survey/profile.*$' => [
[
'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysProfile',
'verb' => RouteVerb::GET,

View File

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