Commit 538d39a7 authored by astaxie's avatar astaxie

add some tips

parent b961abb5
...@@ -205,6 +205,16 @@ ...@@ -205,6 +205,16 @@
beego.Router("/simple",&SimpleController{},"get:GetFunc;post:PostFunc") beego.Router("/simple",&SimpleController{},"get:GetFunc;post:PostFunc")
可用的http method
- * :包含一下所有的函数
- get :GET请求
- post :POST请求
- put :PUT请求
- delete :DELETE请求
- patch :PATCH请求
- options :OPTIONS请求
- head :HEAD请求
>>>如果同时存在*和对应的http method,那么优先执行http method的方法,例如同时注册了如下所示的路由: >>>如果同时存在*和对应的http method,那么优先执行http method的方法,例如同时注册了如下所示的路由:
>>> beego.Router("/simple",&SimpleController{},"*:AllFunc;post:PostFunc") >>> beego.Router("/simple",&SimpleController{},"*:AllFunc;post:PostFunc")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment