From c18c80d7327b17281817a687eb2a0231d45f7005 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 4 Nov 2022 15:33:30 +0100 Subject: [PATCH] Router: Add all routes regardless of the URI --- app/classes/Router.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/classes/Router.php b/app/classes/Router.php index ec50b1b..5da2fa3 100644 --- a/app/classes/Router.php +++ b/app/classes/Router.php @@ -40,15 +40,8 @@ class Router { // Process basic routes foreach (self::$routes as $route) { - // If route does not match the base url - if ($route[0] != $path) { - continue; - } - // ["/example/my-page", "ExampleController", "action", "" : ["view", "title", "description"]], self::addBasicRoute(['GET', 'POST'], $route); - - break; } self::createNavigation();