From 0890106d41b2921af9463468a813b2bb4a10f2ab Mon Sep 17 00:00:00 2001 From: Skylear Date: Thu, 15 Jul 2021 16:45:56 -0500 Subject: [PATCH] Move $uri var in run() --- src/Splashsky/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Splashsky/Router.php b/src/Splashsky/Router.php index 8fc2405..1ec3aff 100644 --- a/src/Splashsky/Router.php +++ b/src/Splashsky/Router.php @@ -153,8 +153,8 @@ class Router public static function run(string $basePath = '', bool $multimatch = false) { $basePath = rtrim($basePath, '/'); - $uri = parse_url($_SERVER['REQUEST_URI'])['path']; $method = $_SERVER['REQUEST_METHOD']; + $uri = parse_url($_SERVER['REQUEST_URI'])['path']; $path = urldecode(rtrim($uri, '/')); // If the path is empty (no slash in URI) place one to satisfy the root route ('/')