mirror of
https://github.com/koel/koel
synced 2024-12-22 02:23:14 +00:00
22 lines
440 B
PHP
22 lines
440 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
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());
|
|
}
|
|
}
|