Skip to content

Commit 5b63234

Browse files
committed
docs: improve http method decorator explanation
1 parent 1c1d18e commit 5b63234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class CatsController {
181181
}
182182
```
183183

184-
It's that simple. Nest provides the rest of the standard HTTP request endpoint decorators in the same fashion - `@Put()`, `@Delete()`, `@Patch()`, `@Options()`, `@Head()`, and `@All()`. Each represents its respective HTTP request method.
184+
It's that simple. Nest provides decorators for all of the standard HTTP methods: `@Get`, `@Post`, `@Put()`, `@Delete()`, `@Patch()`, `@Options()`, and `@Head()`. In addition, `@All()` defines an endpoint that handles all of them.
185185

186186
#### Route wildcards
187187

0 commit comments

Comments
 (0)