mirror of
https://github.com/koel/koel
synced 2024-12-03 17:29:33 +00:00
21 lines
450 B
PHP
21 lines
450 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\MediaInformation;
|
|
|
|
use App\Models\Album;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class AlbumController extends Controller
|
|
{
|
|
/**
|
|
* Get extra information about an album via Last.fm.
|
|
*
|
|
* @param Album $album
|
|
*
|
|
* @return JsonResponse
|
|
*/
|
|
public function show(Album $album)
|
|
{
|
|
return response()->json($this->mediaInformationService->getAlbumInformation($album));
|
|
}
|
|
}
|