Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
538d39a7
authored
2013-07-25 15:46:47 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add some tips
1 parent
b961abb5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
docs/zh/Quickstart.md
docs/zh/Quickstart.md
View file @
538d39a
...
...
@@ -205,6 +205,16 @@
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的方法,例如同时注册了如下所示的路由:
>>> beego.Router("/simple",&SimpleController{},"*:AllFunc;post:PostFunc")
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment