diff --git a/helper.php b/helper.php index 0a3206fd..0a458e5b 100644 --- a/helper.php +++ b/helper.php @@ -24,7 +24,6 @@ use think\Loader; use think\Log; use think\Request; use think\Response; -use think\Route; use think\Session; use think\Url; use think\View; @@ -336,20 +335,6 @@ function trace($log = '[think]', $level = 'log') } } -/** - * 路由注册 - * @param string $rule 路由规则 - * @param mixed $route 路由地址 - * @param sting $type 请求类型 - * @param array $option 路由参数 - * @param array $pattern 变量规则 - * @return void - */ -function route($rule = '', $route = [], $type = '*', $option = [], $pattern = []) -{ - Route::rule($rule, $route, $type, $option, $pattern); -} - /** * 获取当前Request对象实例 * @return \think\Request