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