Make app,localization in url optional+tld+subdomain

This commit is contained in:
Dennis Eichhorn 2019-03-09 23:21:29 +01:00
parent 29f3d74802
commit 6e66e4006d
7 changed files with 15 additions and 15 deletions

View File

@ -1,11 +1,11 @@
[
{
"id": 1005301001,
"pid": "/backend",
"pid": "/",
"type": 2,
"subtype": 1,
"name": "Editor",
"uri": "{/lang}/backend/editor/list?{?}",
"uri": "{/prefix}editor/list?{?}",
"target": "self",
"icon": null,
"order": 75,
@ -15,11 +15,11 @@
"children": [
{
"id": 1005302001,
"pid": "/backend/editor",
"pid": "/editor",
"type": 3,
"subtype": 1,
"name": "List",
"uri": "{/lang}/backend/editor/list?{?}",
"uri": "{/prefix}editor/list?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -30,11 +30,11 @@
},
{
"id": 1005302101,
"pid": "/backend/editor",
"pid": "/editor",
"type": 3,
"subtype": 5,
"name": "Create",
"uri": "{/lang}/backend/editor/create?{?}",
"uri": "{/prefix}editor/create?{?}",
"target": "self",
"icon": null,
"order": 15,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^.*/api/editor.*$' => [
'^.*/editor.*$' => [
[
'dest' => '\Modules\Editor\Controller\ApiController:apiEditorCreate',
'verb' => RouteVerb::PUT,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;
return [
'^.*/backend/editor/create.*$' => [
'^.*/editor/create.*$' => [
[
'dest' => '\Modules\Editor\Controller\BackendController:setUpEditorEditor',
'verb' => RouteVerb::GET,
@ -26,7 +26,7 @@ return [
],
],
],
'^.*/backend/editor/list.*$' => [
'^.*/editor/list.*$' => [
[
'dest' => '\Modules\Editor\Controller\BackendController:viewEditorList',
'verb' => RouteVerb::GET,
@ -37,7 +37,7 @@ return [
],
],
],
'^.*/backend/editor/single.*$' => [
'^.*/editor/single.*$' => [
[
'dest' => '\Modules\Editor\Controller\BackendController:viewEditorSingle',
'verb' => RouteVerb::GET,

View File

@ -20,7 +20,7 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12">
<section class="box wf-100">
<div class="inner">
<form id="fEditor" method="PUT" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
<form id="fEditor" method="PUT" action="<?= \phpOMS\Uri\UriFactory::build('{/api}editor?{?}&csrf={$CSRF}'); ?>">
<div class="ipt-wrap">
<div class="ipt-first"><input name="title" type="text" class="wf-100"></div>
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save') ?>"></div>

View File

@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
<td colspan="3">
<tbody>
<?php $count = 0; foreach ($docs as $key => $value) : ++$count;
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/editor/single?{?}&id=' . $value->getId()); ?>
$url = \phpOMS\Uri\UriFactory::build('{/prefix}editor/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getTitle()); ?></a>
<td data-label="<?= $this->getHtml('Creator') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCreatedBy()->getName1()); ?></a>

View File

@ -20,7 +20,7 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12">
<section class="box wf-100">
<div class="inner">
<form id="fEditor" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
<form id="fEditor" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}editor?{?}&csrf={$CSRF}'); ?>">
<div class="ipt-wrap">
<div class="ipt-first"><input name="title" type="text" class="wf-100" value="<?= $doc->getTitle(); ?>"></div>
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save') ?>"></div>

View File

@ -26,7 +26,7 @@
"load": [
{
"pid": [
"/backend/editor"
"/editor"
],
"type": 4,
"for": "Content",
@ -35,7 +35,7 @@
},
{
"pid": [
"/backend"
"/"
],
"type": 5,
"from": "Editor",