[TOC] ## 制定路由 ``` \think\Route::get([ "api/feedback"=>"api/feedback/get", ]); \think\Route::post([ "api/feedback"=>"api/feedback/post", ]); ``` ## 快捷路由 ``` // 给User控制器设置快捷路由 Route::controller('user','index/User'); namespace app\index\controller; class User { public function getInfo() { } public function getPhone() { } public function postInfo() { } public function putInfo() { } public function deleteInfo() { } } // 访问 get http://localhost/user/info get http://localhost/user/phone post http://localhost/user/info put http://localhost/user/info delete http://localhost/user/info ```