mirror of
https://github.com/koel/koel
synced 2024-12-26 12:33:06 +00:00
16 lines
397 B
PHP
16 lines
397 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\V6\API;
|
||
|
|
||
|
use App\Http\Controllers\API\Controller;
|
||
|
use App\Models\Album;
|
||
|
use App\Services\MediaInformationService;
|
||
|
|
||
|
class FetchAlbumInformationController extends Controller
|
||
|
{
|
||
|
public function __invoke(Album $album, MediaInformationService $informationService)
|
||
|
{
|
||
|
return response()->json($informationService->getAlbumInformation($album));
|
||
|
}
|
||
|
}
|