eee
This commit is contained in:
+2
-2
@@ -139,9 +139,9 @@ class Router
|
||||
/**
|
||||
* @param array|RequestMethod $methods
|
||||
* @param string $route
|
||||
* @param string $handler
|
||||
* @param string|array $handler
|
||||
*/
|
||||
public static function addRoute(array|RequestMethod $methods, string $route, string $handler): void
|
||||
public static function addRoute(array|RequestMethod $methods, string $route, string|array $handler): void
|
||||
{
|
||||
$router = Kiri::getDi()->get(DataGrip::class)->get(static::$type);
|
||||
if ($methods instanceof RequestMethod) {
|
||||
|
||||
Reference in New Issue
Block a user