dist/Sophwork/app/app/SophworkApp.php
public function get($route, $toController, $alias = null) 
	{
		$route = [
			'route' => $route,
			'toController' => $toController,
			'alias' => $alias,
			'isDynamic' => preg_match("/{([^{}?&]+)}/", $route),
		];
		if (!is_null($alias))
			$this->routes['GET'][$alias] = $route;
		else
			$this->routes['GET'][] = $route;
		return new RouteMiddleware($this->appDispatcher, $route['route']);
	}
public function get($route, $toController, $alias = null) 
	{
		$route = [
			'route' => $route,
			'toController' => $toController,
			'alias' => $alias,
			'isDynamic' => preg_match("/{([^{}?&]+)}/", $route),
		];
		if (!is_null($alias))
			$this->routes['GET'][$alias] = $route;
		else
			$this->routes['GET'][] = $route;
		return new RouteMiddleware($this->appDispatcher, $route['route']);
	}
public function get ( $ route , $ toController , $ alias = null ) { $ route = [ 'route' => $ route , 'toController' => $ toController , 'alias' => $ alias , 'isDynamic' => preg_match ( "/{([^{}?&]+)}/" , $ route ) , ] ; if ( ! is_null ( $ alias ) ) $ this -> routes [ 'GET' ] [ $ alias ] = $ route ; else $ this -> routes [ 'GET' ] [ ] = $ route ; return new RouteMiddleware ( $ this -> appDispatcher , $ route [ 'route' ] ) ; }
GET route method
@param  [type] $route        [description]
@param  [type] $toController [description]
GET route method