koel/app/Http/Controllers/API/ArtistInfoController.php

23 lines
440 B
PHP
Raw Normal View History

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