public function getRouteController()
{
$routes = ["^/\$" => "LoginController", "^/firstcontroller/" => "FirstController", "^/secondcontroller/" => "SecondController"];
foreach ($routes as $key => $route) {
if (preg_match("#{$key}#", $this->request->getRequestUri())) {
return $route;
}
}
throw new \Exception('No route controller.');
}