koel/app/Http/Controllers/API/MediaInformation/ArtistController.php

20 lines
423 B
PHP
Raw Normal View History

<?php
2018-08-18 13:19:40 +00:00
namespace App\Http\Controllers\API\MediaInformation;
use App\Models\Artist;
2017-06-04 01:30:45 +00:00
use Illuminate\Http\JsonResponse;
2018-08-18 13:19:40 +00:00
class ArtistController extends Controller
{
/**
* Get extra information about an artist via Last.fm.
*
2017-06-04 01:30:45 +00:00
* @return JsonResponse
*/
2017-08-06 09:43:59 +00:00
public function show(Artist $artist)
{
2018-08-18 13:19:40 +00:00
return response()->json($this->mediaInformationService->getArtistInformation($artist));
}
}