mediaMetadataService = $mediaMetadataService; } /** * Get an album's thumbnail * * Get an album's thumbnail (a 48px-wide blurry version of the album's cover). * Returns the full URL to the thumbnail or NULL if the album has no cover. * * @response ["thumbnailUrl", "https://localhost/img/covers/a146d01afb742b01f28ab8b556f9a75d_thumbnail.jpg"] */ public function get(Album $album): JsonResponse { return response()->json(['thumbnailUrl' => $this->mediaMetadataService->getAlbumThumbnailUrl($album)]); } }