From d7a8da539ac509b06c246643ea31aa67ad48184f Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Thu, 16 Apr 2026 10:03:00 +0530 Subject: [PATCH] feat: exempt presigned download URL endpoint from rate limiting to support avatar rendering --- src/upload/upload.controller.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/upload/upload.controller.ts b/src/upload/upload.controller.ts index f95f7a7..4b932ab 100644 --- a/src/upload/upload.controller.ts +++ b/src/upload/upload.controller.ts @@ -11,6 +11,7 @@ import { Res, BadRequestException, } from '@nestjs/common'; +import { SkipThrottle } from '@nestjs/throttler'; import { ApiTags, ApiOperation, @@ -144,6 +145,7 @@ export class UploadController { @Get('presigned-download-url') @Public() + @SkipThrottle() // avatars load for every agent card — don't count against the per-user throttle @ApiOperation({ summary: 'Get a presigned download URL for an S3 key (public endpoint)' }) @ApiQuery({ name: 'key', required: true, description: 'S3 key (e.g., avatars/uuid.png)' }) @ApiResponse({ status: 200, description: 'Presigned URL returned successfully' })