Skip to content

Commit

Permalink
docs: fix typo in router (#4203)
Browse files Browse the repository at this point in the history
* docs(security): fix typo

* docs: fix typo in router

Co-authored-by: Xuemuyang <xuemuyang@dxy.cn>
  • Loading branch information
Xuemuyang and Xuemuyang authored Mar 16, 2020
1 parent 1181a67 commit 5e2bad0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/en/basics/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = app => {

### RESTful Style URL Definition

We provide `app.resources('routerName', 'pathMatch', 'controller')` to generate [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) structures on a path for convenience if you prefer the RESTful style URL definition.
We provide `app.router.resources('routerName', 'pathMatch', 'controller')` to generate [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) structures on a path for convenience if you prefer the RESTful style URL definition.

```js
// app/router.js
Expand Down
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 @@ -88,7 +88,7 @@ module.exports = app => {
### RESTful 风格的 URL 定义

如果想通过 RESTful 的方式来定义路由,
我们提供了 `app.resources('routerName', 'pathMatch', controller)` 快速在一个路径上生成 [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) 路由结构。
我们提供了 `app.router.resources('routerName', 'pathMatch', controller)` 快速在一个路径上生成 [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) 路由结构。

```js
// app/router.js
Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh-cn/core/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ exports.security = {

### app.injectHijackingDefense(str)

对于没有开启 HTTPS 的网站,这个函数可以有限的防止运营商劫持
对于没有开启 HTTPS 的网站,这个函数可以有效的防止运营商劫持


[egg-view-nunjucks]: https://github.com/eggjs/egg-view-nunjucks

0 comments on commit 5e2bad0

Please sign in to comment.