From 17487d393287a6b030825c2326ec4666eff38c39 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Sat, 7 Mar 2026 22:19:00 +0530 Subject: [PATCH] feat: mark presigned download URL endpoint as public. --- src/upload/upload.controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/upload/upload.controller.ts b/src/upload/upload.controller.ts index 1249774..f95f7a7 100644 --- a/src/upload/upload.controller.ts +++ b/src/upload/upload.controller.ts @@ -26,6 +26,7 @@ import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard'; import { RolesGuard } from '../auth/guards/roles.guard'; import { Roles } from '../auth/decorators/roles.decorator'; import { CurrentUser } from '../auth/decorators/current-user.decorator'; +import { Public } from '../auth/decorators/public.decorator'; import { UserRole } from '@prisma/client'; import { PrismaService } from '../prisma/prisma.service'; @@ -142,6 +143,7 @@ export class UploadController { } @Get('presigned-download-url') + @Public() @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' }) @@ -161,4 +163,5 @@ export class UploadController { throw new NotFoundException('File not found'); } } + }