diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index ec3de876..b2e5f10f 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -120,7 +120,7 @@ class Router extends HttpService implements RouterInterface if ($handler instanceof Closure) { $handler = Closure::bind($handler, di(Controller::class)); } - return $this->tree($path, $handler, $method); + return $this->hash($path, $handler, $method); } @@ -515,7 +515,7 @@ class Router extends HttpService implements RouterInterface */ public function dispatch(Request $request): void { - $node = $this->Branch_search($request); + $node = $this->find_path($request); if (!($node instanceof Node)) { $this->response->setFormat(Response::HTML); $this->response->send('