Skip to content

Commit a392fed

Browse files
Merge pull request #3040 from iiio2/patch-2
docs: tiny typo
2 parents 893f0a0 + 697446b commit a392fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const app = await NestFactory.create(AppModule);
117117
app.useGlobalGuards(new RolesGuard());
118118
```
119119

120-
> warning **Notice** In the case of hybrid apps the `useGlobalGuards()` method doesn't set up guards for gateways and micro services by default (see [Hybrid application](/faq/hybrid-application) for information on how to change this behavior). For "standard" (non-hybrid) microservice apps, `useGlobalGuards()` does mount the guards globally.
120+
> warning **Notice** In the case of hybrid apps the `useGlobalGuards()` method doesn't set up guards for gateways and microservices by default (see [Hybrid application](/faq/hybrid-application) for information on how to change this behavior). For "standard" (non-hybrid) microservice apps, `useGlobalGuards()` does mount the guards globally.
121121
122122
Global guards are used across the whole application, for every controller and every route handler. In terms of dependency injection, global guards registered from outside of any module (with `useGlobalGuards()` as in the example above) cannot inject dependencies since this is done outside the context of any module. In order to solve this issue, you can set up a guard directly from any module using the following construction:
123123

0 commit comments

Comments
 (0)