Skip to content

Commit 0528f5d

Browse files
authored
Merge pull request #392 from rookie-luochao/master
fix(controllers.md): fix 文字重复错误
2 parents f61a896 + f632804 commit 0528f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

10/controllers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ export class CatsController {
6262

6363
?> 为了在 `express` 中使用 `Typescript` (如 `request: Request` 上面的参数示例所示),请安装 `@types/express`
6464

65-
`Request` 对象代表 `HTTP` 请求,并具有查询字符串,请求参数参数,HTTP 标头(HTTP header) 和 正文(HTTP body)的属性(在[这里](https://expressjs.com/en/api.html#req)阅读更多)。在多数情况下,不必手动获取它们。 我们可以使用专用的装饰器,比如开箱即用的 `@Body()``@Query()` 。 下面是 Nest 提供的装饰器及其代表的底层平台特定对象的对照列表。
65+
`Request` 对象代表 `HTTP` 请求,并具有查询字符串,请求参数,HTTP 标头(HTTP header) 和 正文(HTTP body)的属性(在[这里](https://expressjs.com/en/api.html#req)阅读更多)。在多数情况下,不必手动获取它们。 我们可以使用专用的装饰器,比如开箱即用的 `@Body()``@Query()` 。 下面是 Nest 提供的装饰器及其代表的底层平台特定对象的对照列表。
6666

6767
| | |
6868
| ------------------------- | --------------------------------- |
6969
| `@Request(),@Req()` | `req` |
70-
| `@Response(),@Res()*` | `res` |
70+
| `@Response(),@Res()` | `res` |
7171
| `@Next()` | `next` |
7272
| `@Session()` | `req.session` |
7373
| `@Param(key?: string)` | `req.params`/`req.params[key]` |

0 commit comments

Comments
 (0)