koel/app/Http/Controllers/API/FetchAlbumInformationController.php

16 lines
390 B
PHP
Raw Permalink Normal View History

<?php
2023-06-05 21:46:41 +00:00
namespace App\Http\Controllers\API;
2022-07-29 06:47:10 +00:00
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));
}
}