Fix false 405 by removing key in routes array
This commit is contained in:
parent
bf6da3b990
commit
053d4f30b2
|
@ -28,7 +28,7 @@ class Router
|
||||||
|
|
||||||
$trimmed = self::trimRoute($route);
|
$trimmed = self::trimRoute($route);
|
||||||
|
|
||||||
self::$routes[$trimmed] = [
|
self::$routes[] = [
|
||||||
'route' => $trimmed,
|
'route' => $trimmed,
|
||||||
'action' => $action,
|
'action' => $action,
|
||||||
'methods' => $methods,
|
'methods' => $methods,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user