mirror of
https://github.com/koel/koel
synced 2024-12-26 20:43:05 +00:00
16 lines
407 B
PHP
16 lines
407 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\API;
|
||
|
|
||
|
use App\Http\Controllers\Controller;
|
||
|
use App\Models\Album;
|
||
|
use App\Services\MediaMetadataService;
|
||
|
|
||
|
class FetchAlbumThumbnailController extends Controller
|
||
|
{
|
||
|
public function __invoke(Album $album, MediaMetadataService $mediaMetadataService)
|
||
|
{
|
||
|
return response()->json(['thumbnailUrl' => $mediaMetadataService->getAlbumThumbnailUrl($album)]);
|
||
|
}
|
||
|
}
|