src/Routing/Adapter/Laravel.php
public function getRoutes($version = null)
    {
        if (! is_null($version)) {
            return $this->routes[$version];
        }

        return $this->routes;
    }
public function getRoutes($version = null)
    {
        if (! is_null($version)) {
            return $this->routes[$version];
        }

        return $this->routes;
    }
public function getRoutes ( $ version = null ) { if ( ! is_null ( $ version ) ) { return $ this -> routes [ $ version ] ; } return $ this -> routes ; }
Get all routes or only for a specific version.

@param string $version

@return mixed
Get all routes or only for a specific version .