You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
757 B
PHTML
32 lines
757 B
PHTML
4 years ago
|
<?php
|
||
|
use Psr\Http\Message\ResponseInterface;
|
||
|
use Psr\Http\Message\ServerRequestInterface;
|
||
|
|
||
|
include "brain/controller/IndexControl.inc.php";
|
||
|
include "brain/controller/DashControl.inc.php";
|
||
|
|
||
|
class RouteControl
|
||
|
{
|
||
|
public function get(
|
||
|
ServerRequestInterface $request,
|
||
|
ResponseInterface $response,
|
||
|
array $args
|
||
|
): ResponseInterface {
|
||
|
switch (isset($args["first"]) ? $args["first"] : "index") {
|
||
|
case "dashboard":
|
||
|
return DashControl::start($request, $response, $args);
|
||
|
break;
|
||
|
default:
|
||
|
return IndexControl::start($request, $response, $args);
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public function post(
|
||
|
ServerRequestInterface $request,
|
||
|
ResponseInterface $response,
|
||
|
array $args
|
||
|
): ResponseInterface {
|
||
|
}
|
||
|
}
|