mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
21 lines
395 B
PHP
21 lines
395 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use App\Models\Album;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class AlbumInfoController extends Controller
|
|
{
|
|
/**
|
|
* Get extra information about an album via Last.fm.
|
|
*
|
|
* @param Album $album
|
|
*
|
|
* @return JsonResponse
|
|
*/
|
|
public function show(Album $album)
|
|
{
|
|
return response()->json($album->getInfo());
|
|
}
|
|
}
|