diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index 9c2bd51a..04b3b1e2 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -71,7 +71,7 @@ class Router extends Application implements RouterInterface if (!isset($this->nodes[$method])) { $this->nodes[$method] = []; } - if (Config::get('router') == ROUTER_TREE) { + if (Config::get('router', false, ROUTER_HASH) == ROUTER_TREE) { return $this->tree($path, $handler, $method); } else { return $this->hash($path, $handler, $method);