Refactoring Router class.
This commit is contained in:
parent
80c746edb2
commit
94ccbffb7d
|
@ -23,7 +23,7 @@ public static function route($method, $uri)
|
||||||
|
|
||||||
if (is_null(static::$routes))
|
if (is_null(static::$routes))
|
||||||
{
|
{
|
||||||
static::$routes = ( ! is_dir(APP_PATH.'routes')) ? require APP_PATH.'routes'.EXT : static::load($uri);
|
static::$routes = (is_dir(APP_PATH.'routes')) ? static::load($uri) : require APP_PATH.'routes'.EXT;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is there an exact match for the request?
|
// Is there an exact match for the request?
|
||||||
|
|
Loading…
Reference in New Issue