This commit is contained in:
2020-10-13 12:11:32 +08:00
parent 3a8eea91ab
commit f43f55ed84
+1 -1
View File
@@ -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);