Fix false 405 by removing key in routes array

This commit is contained in:
Sky Johnson 2023-03-08 15:51:18 -06:00
parent bf6da3b990
commit 053d4f30b2

View File

@ -28,7 +28,7 @@ class Router
$trimmed = self::trimRoute($route);
self::$routes[$trimmed] = [
self::$routes[] = [
'route' => $trimmed,
'action' => $action,
'methods' => $methods,