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) { foreach ($this->nodes as $node) {
/** @var Node[] $node */ /** @var Node[] $node */
foreach ($node as $_node) { foreach ($node as $_node) {
if ($_node->path == '/') { // if ($_node->path == '/') {
continue; // continue;
} // }
$path = strtoupper($_node->method) . ' : ' . $_node->path; $path = strtoupper($_node->method) . ' : ' . $_node->path;
if (!empty($_node->childes)) { if (!empty($_node->childes)) {
$path = $this->readByChild($_node->childes, $path); $path = $this->readByChild($_node->childes, $path);