fix(media): correct route param handling in media controller
All checks were successful
Backend Tests / test (push) Successful in 1m48s
Lint / lint (backend) (push) Successful in 1m7s
Lint / lint (documentation) (push) Successful in 1m7s
Lint / lint (frontend) (push) Successful in 1m8s
Backend Tests / test (pull_request) Successful in 1m10s
Lint / lint (backend) (pull_request) Successful in 1m8s
Lint / lint (documentation) (pull_request) Successful in 1m7s
Lint / lint (frontend) (pull_request) Successful in 1m9s

Adjust `@Get` decorator route pattern to properly handle file keys with special characters.
This commit is contained in:
Mathis HERRIOT
2026-01-14 23:51:24 +01:00
parent d74fd15036
commit 7048c2731e

View File

@@ -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);