This commit is contained in:
2021-03-05 19:12:34 +08:00
parent 855d7d6cfa
commit c0cce890dc
+1 -1
View File
@@ -138,7 +138,7 @@ class Router extends HttpService implements RouterInterface
$parent = $this->nodes[$method][$first] ?? null;
if (empty($parent)) {
$this->nodes[$method][$first] = $this->NodeInstance('/', 0, $method);
$this->nodes[$method][$first] = $parent = $this->NodeInstance('/', 0, $method);
}
if ($first !== '/') {