Routings moved to routing files

This commit is contained in:
Dennis Eichhorn 2016-04-01 22:16:21 +02:00
parent b15a527266
commit 4114f2e436
4 changed files with 26 additions and 11 deletions

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

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

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

@ -0,0 +1,20 @@
<?php
$httpRoutes = [
'^.*/backend/profile/list.*$' => [
[
'dest' => '\Modules\Profile\Controller:viewProfileList',
'verb' => RouteVerb::GET,
'result' => ViewType::HTML,
'layout' => ViewLayout::MAIN,
],
],
'^.*/backend/profile/single.*$' => [
[
'dest' => '\Modules\Profile\Controller:viewProfileSingle',
'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

@ -90,17 +90,6 @@ class Controller extends ModuleAbstract implements WebInterface
protected static $dependencies = [
];
/**
* Routing elements.
*
* @var array
* @since 1.0.0
*/
protected static $routes = [
'^.*/backend/profile/list.*$' => [['dest' => '\Modules\Profile\Controller:viewProfileList', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
'^.*/backend/profile/single.*$' => [['dest' => '\Modules\Profile\Controller:viewProfileSingle', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
];
/**
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response