Skip to content

Commit 2d8aeb8

Browse files
authored
docs(middleware): add filename for global mw
1 parent b369245 commit 2d8aeb8

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)