Routings moved to routing files

This commit is contained in:
Dennis Eichhorn 2016-04-01 22:16:21 +02:00
parent 6ebb765ac7
commit 236703389e
4 changed files with 138 additions and 29 deletions

3
Admin/Routes/console.php Normal file
View File

@ -0,0 +1,3 @@
<?php
$consoleRoutes = [];

132
Admin/Routes/http.php Normal file
View File

@ -0,0 +1,132 @@
<?php
$httpRoutes = [
'^.*/backend/accounting/personal/entries.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewPersonalEntries',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/impersonal/entries.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewImpersonalEntries',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/entries.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewEntries',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/impersonal/journal/list.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewJournalList',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/stack/list.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewStackList',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/stack/entries.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewStackEntries',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/stack/archive/list.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewStackArchiveList',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/stack/create.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewStackCreate',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/stack/predefined/list.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewStackPredefinedList',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/gl/list.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewGLList',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/gl/create.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewGLCreate',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/accounting/gl/profile.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewGLProfile',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/api/accounting/dun/print.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewCostCenterProfile',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/api/accounting/statement/print.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewCostCenterProfile',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/api/accounting/balances/print.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewCostCenterProfile',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/api/accounting/accountform/print.*$' => [
[
'dest' => '\Modules\Accounting\Controller:viewCostCenterProfile',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
];

3
Admin/Routes/socket.php Normal file
View File

@ -0,0 +1,3 @@
<?php
$socketRoutes = [];

View File

@ -74,35 +74,6 @@ class Controller extends ModuleAbstract implements WebInterface
RequestDestination::BACKEND => [''],
];
/**
* Routing elements.
*
* @var array
* @since 1.0.0
*/
protected static $routes = [
'^.*/backend/accounting/personal/entries.*$' => [['dest' => '\Modules\Accounting\Controller:viewPersonalEntries', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/impersonal/entries.*$' => [['dest' => '\Modules\Accounting\Controller:viewImpersonalEntries', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/entries.*$' => [['dest' => '\Modules\Accounting\Controller:viewEntries', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/impersonal/journal/list.*$' => [['dest' => '\Modules\Accounting\Controller:viewJournalList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/stack/list.*$' => [['dest' => '\Modules\Accounting\Controller:viewStackList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/stack/entries.*$' => [['dest' => '\Modules\Accounting\Controller:viewStackEntries', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/stack/archive/list.*$' => [['dest' => '\Modules\Accounting\Controller:viewStackArchiveList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/stack/create.*$' => [['dest' => '\Modules\Accounting\Controller:viewStackCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/stack/predefined/list.*$' => [['dest' => '\Modules\Accounting\Controller:viewStackPredefinedList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/gl/list.*$' => [['dest' => '\Modules\Accounting\Controller:viewGLList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/gl/create.*$' => [['dest' => '\Modules\Accounting\Controller:viewGLCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/accounting/gl/profile.*$' => [['dest' => '\Modules\Accounting\Controller:viewGLProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/api/accounting/dun/print.*$' => [['dest' => '\Modules\Accounting\Controller:viewCostCenterProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/api/accounting/statement/print.*$' => [['dest' => '\Modules\Accounting\Controller:viewCostCenterProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/api/accounting/balances/print.*$' => [['dest' => '\Modules\Accounting\Controller:viewCostCenterProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/api/accounting/accountform/print.*$' => [['dest' => '\Modules\Accounting\Controller:viewCostCenterProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
];
/**
* Providing.
*