mediaMetadataService = $mediaMetadataService; } public function show(Album $album): JsonResponse { return response()->json(['thumbnailUrl' => $this->mediaMetadataService->getAlbumThumbnailUrl($album)]); } }