diff --git a/src/Application.php b/src/Application.php index 6cd4b55..eb7f104 100644 --- a/src/Application.php +++ b/src/Application.php @@ -125,7 +125,7 @@ private function getRoute() : Route $this->router = $this->router ->withCacheFile($cacheFile); } - $this->addRoutes($this->config->get('routes')->get($this->id)); + $this->addRoutes($this->config->get('routes')->get($this->id)->toArray()); return $this->route ?? $this->router->getRoute(); }