diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 5ba6d68d..1a9713f6 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -124,7 +124,8 @@ class Node extends HttpService $callback = $this->injectClosureMiddleware($manager, $handler); } $handlerProviders = di(HandlerProviders::class); - return $handlerProviders->add($this->sourcePath, $this->method, $callback); + $handlerProviders->add($this->sourcePath, $this->method, $callback); + return $this; }