Skip to content

Commit d2e6e88

Browse files
Merge pull request #1492 from glenwinters/controller-resources
docs: improve http method decorator explanation
2 parents eafb1c8 + 5b63234 commit d2e6e88

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)