Routings moved to routing files

This commit is contained in:
Dennis Eichhorn 2016-04-01 22:16:21 +02:00
parent ed67da9b06
commit 9ced1e2469
4 changed files with 18 additions and 10 deletions

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

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

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

@ -0,0 +1,12 @@
<?php
$httpRoutes = [
'^.*/backend/calendar/dashboard.*$' => [
[
'dest' => '\Modules\Calendar\Controller:viewCalendarDashboard',
'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

@ -93,16 +93,6 @@ class Controller extends ModuleAbstract implements WebInterface
protected static $dependencies = [
];
/**
* Routing elements.
*
* @var array
* @since 1.0.0
*/
protected static $routes = [
'^.*/backend/calendar/dashboard.*$' => [['dest' => '\Modules\Calendar\Controller:viewCalendarDashboard', 'method' => 'GET', 'type' => ViewLayout::MAIN],],
];
/**
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response