mirror of
https://github.com/koel/koel
synced 2024-12-21 18:13:13 +00:00
27c4aaf2ba
This reverts commit 1cccffd6ce
.
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));
|
|
}
|
|
}
|