public function routes($method = null)
    {
        if ($method && isset($this->methods[$method])) {
            return $this->routes[$method];
        }
        return $this->routes;
    }
public function routes($method = null)
    {
        if ($method && isset($this->methods[$method])) {
            return $this->routes[$method];
        }
        return $this->routes;
    }
public function routes ( $ method = null ) { if ( $ method && isset ( $ this -> methods [ $ method ] ) ) { return $ this -> routes [ $ method ] ; } return $ this -> routes ; }
Retrieve registered routes

@param string $method (Optional) Method specific routes.
@return array Array of routes
Retrieve registered routes