mirror of
https://github.com/koel/koel
synced 2024-12-13 22:22:27 +00:00
20 lines
385 B
PHP
20 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());
|
|
}
|
|
}
|