This commit is contained in:
xl
2024-08-29 12:00:10 +08:00
parent 6efd221585
commit 1795b59b88
4 changed files with 37 additions and 25 deletions
+2 -3
View File
@@ -139,10 +139,9 @@ class Router
/**
* @param array|RequestMethod $methods
* @param string $route
* @param array|string $handler
* @throws
* @param string $handler
*/
public static function addRoute(array|RequestMethod $methods, string $route, array|string $handler): void
public static function addRoute(array|RequestMethod $methods, string $route, string $handler): void
{
$router = Kiri::getDi()->get(DataGrip::class)->get(static::$type);
if ($methods instanceof RequestMethod) {