protected function getRoutes()
    {
        // Support lumen < 5.5 by checking for the router property.
        $router = property_exists($this->app, 'router') ? $this->app->router : $this->app;

        return $router->getRoutes();
    }