This commit is contained in:
2021-03-05 17:41:07 +08:00
parent c537a0a53a
commit fad7c43f59
3 changed files with 18 additions and 22 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ use Snowflake\Snowflake;
// TODO: Implement setHandler() method.
$router = Snowflake::app()->getRouter();
$node = $router->addRoute($this->uri, $handler, $this->method);
$node::annotationInject($node, get_class($handler[0]), $handler[1]);
$router->addRoute($this->uri, $handler, $this->method);
return $router;
}