feat: api endpoints throttle (#837)

* feat: api endpoints throttle
This commit is contained in:
Ahmed Bouhuolia
2025-10-30 22:06:05 +02:00
committed by GitHub
parent 844a050c9a
commit 41143d8bbd
8 changed files with 215 additions and 119 deletions

View File

@@ -8,6 +8,7 @@ import {
Request,
UseGuards,
} from '@nestjs/common';
import { Throttle } from '@nestjs/throttler';
import {
ApiTags,
ApiOperation,
@@ -28,6 +29,7 @@ import { SystemUser } from '../System/models/SystemUser';
@ApiTags('Auth')
@ApiExcludeController()
@PublicRoute()
@Throttle({ auth: {} })
export class AuthController {
constructor(
private readonly authApp: AuthenticationApplication,