Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update router.md #952

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zh-CN/mvc/controller/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ web.Handler("/rpc", s)
web.Router("/simple",&SimpleController{},"*:AllFunc;post:PostFunc")
那么执行 `POST` 请求的时候,执行 `PostFunc` 而不执行 `AllFunc`。

>>>自定义函数的路由默认不支持 RESTful 的方法,也就是如果你设置了 `web.Router("/api",&RestController{},"post:ApiFunc")` 这样的路由,如果请求的方法是 `POST`,那么不会默认去执行 `Post` 函数。
>>>自定义函数的路由默认不支持 RESTful 的方法,也就是如果你设置了 `web.Router("/api",&RestController{},"post:ApiFunc")` 这样的路由,如果请求的方法是 `POST`,那么不会默认去执行 `Post` 函数,而是执行`ApiFunc` 函数

## 自动匹配

Expand Down