mirror of
https://github.com/koel/koel
synced 2024-12-22 10:33:16 +00:00
26 lines
579 B
PHP
26 lines
579 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\MediaInformation;
|
|
|
|
use App\Models\Artist;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
/**
|
|
* @group 5. Media information
|
|
*/
|
|
class ArtistController extends Controller
|
|
{
|
|
/**
|
|
* Get artist's extra information
|
|
*
|
|
* Get extra information about an artist via Last.fm.
|
|
*
|
|
* @responseFile responses/mediaInformation.artist.show.json
|
|
*
|
|
* @return JsonResponse
|
|
*/
|
|
public function show(Artist $artist)
|
|
{
|
|
return response()->json($this->mediaInformationService->getArtistInformation($artist));
|
|
}
|
|
}
|