From 053d4f30b2aa0ebc3ed20d5b9cc1a92a801192be Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Wed, 8 Mar 2023 15:51:18 -0600 Subject: [PATCH] Fix false 405 by removing key in routes array --- src/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Router.php b/src/Router.php index fb4fe73..f5790d6 100644 --- a/src/Router.php +++ b/src/Router.php @@ -28,7 +28,7 @@ class Router $trimmed = self::trimRoute($route); - self::$routes[$trimmed] = [ + self::$routes[] = [ 'route' => $trimmed, 'action' => $action, 'methods' => $methods,