core/Request.php
public static function route(string $name = null, $def = null)
    {
        $route = Route::get();
        if (empty($name)) {
            return $route;
        }
        if ($route == null) {
            return $def;
        }
        if (isset($route[$name])) {
            return $route[$name];
        }
        return $def;
    }
public static function route(string $name = null, $def = null)
    {
        $route = Route::get();
        if (empty($name)) {
            return $route;
        }
        if ($route == null) {
            return $def;
        }
        if (isset($route[$name])) {
            return $route[$name];
        }
        return $def;
    }
获取路由
@param string|null $name 支持 ctl:控制器名  act:方法名  app:应用名
@param null $def
@return null