mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
15 lines
390 B
PHP
15 lines
390 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use App\Http\Controllers\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));
|
|
}
|
|
}
|