feat: add throttler
This commit is contained in:
@@ -21,7 +21,7 @@ import { Throttle } from '@nestjs/throttler';
|
||||
|
||||
@Controller('admin/tests')
|
||||
@Roles(Role.SUPERUSER, Role.ADMIN)
|
||||
@Throttle({ admin: {} })
|
||||
@Throttle({ default: { limit: 120, ttl: 60_000 } })
|
||||
export class AdminTestsController {
|
||||
constructor(
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user