mirror of
https://github.com/koel/koel
synced 2024-12-30 06:23:05 +00:00
21 lines
403 B
PHP
21 lines
403 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use App\Models\Artist;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class ArtistInfoController extends Controller
|
|
{
|
|
/**
|
|
* Get extra information about an artist via Last.fm.
|
|
*
|
|
* @param Artist $artist
|
|
*
|
|
* @return JsonResponse
|
|
*/
|
|
public function show(Artist $artist)
|
|
{
|
|
return response()->json($artist->getInfo());
|
|
}
|
|
}
|