Skip to content

Commit 88ca596

Browse files
Merge pull request #3257 from Uaitt/docs/correct-typo-in-controllers-article
docs(controllers): fix typo
2 parents 82b7a35 + 24d9c2a commit 88ca596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/controllers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class AdminController {
319319

320320
> warning **Warning** Since **Fastify** does not support nested routers, if you are using sub-domain routing, it is recommended to use the default Express adapter instead.
321321
322-
Similar to a route `path`, the `hosts` option can use tokens to capture the dynamic value at that position in the host name. The host parameter token in the `@Controller()` decorator example below demonstrates this usage. Host parameters declared in this way can be accessed using the `@HostParam()` decorator, which should be added to the method signature.
322+
Similar to a route `path`, the `host` option can use tokens to capture the dynamic value at that position in the host name. The host parameter token in the `@Controller()` decorator example below demonstrates this usage. Host parameters declared in this way can be accessed using the `@HostParam()` decorator, which should be added to the method signature.
323323

324324
```typescript
325325
@Controller({ host: ':account.example.com' })

0 commit comments

Comments
 (0)