koel/app/Http/Controllers/V6/API/FetchAlbumInformationController.php
2022-07-29 09:04:44 +02:00

15 lines
393 B
PHP

<?php
namespace App\Http\Controllers\V6\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));
}
}