Skip to content

Commit

Permalink
docs: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezhang authored and dead-horse committed Mar 14, 2017
1 parent 54c10bc commit a172960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/zh-cn/basics/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ app.verb('router-name', 'path-match', middleware1, ..., middlewareN, 'controller
- router-name 给路由设定一个别名,可以通过 Helper 提供的辅助函数 `pathFor``urlFor` 来生成 URL。(可选)
- path-match - 路由 URL 路径。
- middleware1 - 在 Router 里面可以配置多个 Middleware。(可选)
- controller.action - 注意是字符串,框架会自动从 `app/controller` 目录中区查找同名 Controller,
- controller.action - 注意是字符串,框架会自动从 `app/controller` 目录中去查找同名 Controller,
并且把处理指定到配置的 action 方法。如果 Controller 文件直接 export 一个方法,可以省略 action。

### 注意事项
Expand Down

0 comments on commit a172960

Please sign in to comment.