2016-06-05 11:03:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
|
2017-08-06 09:43:59 +00:00
|
|
|
use App\Http\Controllers\Controller;
|
2016-06-05 11:03:58 +00:00
|
|
|
use App\Models\Artist;
|
2017-06-04 01:30:45 +00:00
|
|
|
use Illuminate\Http\JsonResponse;
|
2016-06-05 11:03:58 +00:00
|
|
|
|
2017-08-06 09:43:59 +00:00
|
|
|
class ArtistInfoController extends Controller
|
2016-06-05 11:03:58 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get extra information about an artist via Last.fm.
|
|
|
|
*
|
|
|
|
* @param Artist $artist
|
|
|
|
*
|
2017-06-04 01:30:45 +00:00
|
|
|
* @return JsonResponse
|
2016-06-05 11:03:58 +00:00
|
|
|
*/
|
2017-08-06 09:43:59 +00:00
|
|
|
public function show(Artist $artist)
|
2016-06-05 11:03:58 +00:00
|
|
|
{
|
|
|
|
return response()->json($artist->getInfo());
|
|
|
|
}
|
|
|
|
}
|