use think\Route;
// Route::rule('路由表达式','路由地址','请求类型','路由参数(数组)','变量规则(数组)');
// 路由地址:模块/控制器/操作 组成
// 请求类型: GET、POST、PUT、DELETE *
Route::rule('hello','sample/Test/hello','Get',['https'=>false]);
Route::rule('hello','sample/Test/hello','Get|POST',['https'=>false]);
Route::get('hello','sample/Test/hello');
Route::post('hello','sample/Test/hello');
Route::any('hello','sample/Test/hello'); //代表*