💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[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 ```