|
|
@@ -23,6 +23,11 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|
|
security: 'is_granted("ROLE_FILE")',
|
|
|
provider: ImageProvider::class
|
|
|
),
|
|
|
+ new Get(
|
|
|
+ uriTemplate: '/internal/image/download/{fileId}/{size}',
|
|
|
+ requirements: ['fileId' => '\\d+', 'size' => new EnumRequirement(FileSizeEnum::class)],
|
|
|
+ provider: ImageProvider::class
|
|
|
+ ),
|
|
|
]
|
|
|
)]
|
|
|
class Image
|