This commit is contained in:
2021-04-02 18:50:31 +08:00
parent 2b2bd7a021
commit ca95569485
+3 -3
View File
@@ -438,9 +438,9 @@ class Router extends HttpService implements RouterInterface
foreach ($this->nodes as $node) {
/** @var Node[] $node */
foreach ($node as $_node) {
if ($_node->path == '/') {
continue;
}
// if ($_node->path == '/') {
// continue;
// }
$path = strtoupper($_node->method) . ' : ' . $_node->path;
if (!empty($_node->childes)) {
$path = $this->readByChild($_node->childes, $path);