koel/app/Http/Controllers/V6/API/FetchArtistInformationController.php

16 lines
399 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers\V6\API;
2022-07-29 06:47:10 +00:00
use App\Http\Controllers\Controller;
use App\Models\Artist;
use App\Services\MediaInformationService;
class FetchArtistInformationController extends Controller
{
public function __invoke(Artist $artist, MediaInformationService $informationService)
{
return response()->json($informationService->getArtistInformation($artist));
}
}