koel/app/Http/Controllers/API/MediaInformation/ArtistController.php
2018-08-29 13:15:23 +07:00

19 lines
423 B
PHP

<?php
namespace App\Http\Controllers\API\MediaInformation;
use App\Models\Artist;
use Illuminate\Http\JsonResponse;
class ArtistController extends Controller
{
/**
* Get extra information about an artist via Last.fm.
*
* @return JsonResponse
*/
public function show(Artist $artist)
{
return response()->json($this->mediaInformationService->getArtistInformation($artist));
}
}