mirror of
https://github.com/koel/koel
synced 2024-12-26 20:43:05 +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());
|
||
|
}
|
||
|
}
|