diff --git a/system/router.php b/system/router.php index a2226a83..2f51f775 100644 --- a/system/router.php +++ b/system/router.php @@ -23,8 +23,7 @@ public static function route($method, $uri) static::$routes = (is_dir(APP_PATH.'routes')) ? static::load($uri) : require APP_PATH.'routes'.EXT; } - // Put the request method and URI in route form. All routes begin with - // the request method and a forward slash. + // Put the request method and URI in route form. Routes begin with the request method and a forward slash. $uri = $method.' /'.trim($uri, '/'); // Is there an exact match for the request? @@ -35,8 +34,7 @@ public static function route($method, $uri) foreach (static::$routes as $keys => $callback) { - // Only check routes that have multiple URIs or wildcards. All other routes would - // have been caught by a literal match. + // Only check routes that have multiple URIs or wildcards. Other routes would be caught by a literal match. if (strpos($keys, '(') !== false or strpos($keys, ',') !== false ) { foreach (explode(', ', $keys) as $key)