企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[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 ```