From 7048c2731e97a54c9a4ee97204c8aefa08dd1265 Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Wed, 14 Jan 2026 23:51:24 +0100 Subject: [PATCH] fix(media): correct route param handling in media controller Adjust `@Get` decorator route pattern to properly handle file keys with special characters. --- backend/src/media/media.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/media/media.controller.ts b/backend/src/media/media.controller.ts index dddd313..b32e53e 100644 --- a/backend/src/media/media.controller.ts +++ b/backend/src/media/media.controller.ts @@ -6,7 +6,7 @@ import { S3Service } from "../s3/s3.service"; export class MediaController { constructor(private readonly s3Service: S3Service) {} - @Get(":key(*)") + @Get("*key") async getFile(@Param("key") key: string, @Res() res: Response) { try { const stats = await this.s3Service.getFileInfo(key);