Skip to content

Commit 5d7018d

Browse files
Merge pull request #3202 from peipeihai/patch-1
Update rate-limiting.md
2 parents e6ee263 + 7d0c325 commit 5d7018d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

content/security/rate-limiting.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ Once the installation is complete, the `ThrottlerModule` can be configured as an
1212
@@filename(app.module)
1313
@Module({
1414
imports: [
15-
ThrottlerModule.forRoot([{
16-
ttl: 60000,
17-
limit: 10,
18-
}]),
15+
ThrottlerModule.forRoot({
16+
throttlers: [
17+
{
18+
ttl: 60000,
19+
limit: 10,
20+
},
21+
],
22+
}),
1923
],
2024
})
2125
export class AppModule {}

0 commit comments

Comments
 (0)