Skip to content

Commit 1be4249

Browse files
Merge pull request #2038 from Zerotask/patch-7
docs(middleware): add file name for global middleware example
2 parents d836716 + 2d8aeb8 commit 1be4249

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/middlewares.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ consumer.apply(cors(), helmet(), logger).forRoutes(CatsController);
237237
If we want to bind middleware to every registered route at once, we can use the `use()` method that is supplied by the `INestApplication` instance:
238238

239239
```typescript
240+
@@filename(main)
240241
const app = await NestFactory.create(AppModule);
241242
app.use(logger);
242243
await app.listen(3000);

0 commit comments

Comments
 (0)