Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
538d39a7
Commit
538d39a7
authored
Jul 25, 2013
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some tips
parent
b961abb5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Quickstart.md
docs/zh/Quickstart.md
+10
-0
No files found.
docs/zh/Quickstart.md
View file @
538d39a7
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment