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 ('/')