diff --git a/HttpServer/Route/Middleware.php b/HttpServer/Route/Middleware.php index 3710db49..6eab96c2 100644 --- a/HttpServer/Route/Middleware.php +++ b/HttpServer/Route/Middleware.php @@ -85,7 +85,6 @@ class Middleware $node->addAfter($attribute->after); } if ($attribute instanceof RMiddleware) { - var_dump($attribute->middleware); $node->addMiddleware($attribute->middleware); } if ($attribute instanceof Limits) { diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index f2a32d64..d27b3902 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -469,9 +469,9 @@ class Node extends HttpService */ public function dispatch(): mixed { - if (!empty($this->callback)) { - return $this->runWith(...func_get_args()); - } +// if (!empty($this->callback)) { +// return $this->runWith(...func_get_args()); +// } if (empty($this->restructure()->callback)) { return Json::to(404, $this->errorMsg()); }