eee
This commit is contained in:
+2
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user