设置路由的请求方式
路径:application/route.php
//引入系统路由类
use \think\Route;
//支持get请求
Route::rule('test','index/index/test','get');//方式1
Route::get('test','index/index/test');//方式2
//支持post请求
Route::rule('test','index/index/test','post');//方式1
Route::post('test','index/index/test');//方式2
//同时支持get和post请求
Route::rule('test','index/index/test','post|get');
//支持所有请求方式
Route::rule('test','index/index/test','*');//方式1
Route::any('test','index/index/test');//方式2
put、delete请求方式类同!
注册单个路由链接:https://blog.youkuaiyun.com/beyond_1990/article/details/99459405
注册批量路由:https://blog.youkuaiyun.com/beyond_1990/article/details/99545317