koel/app/Http/Controllers/API/MediaInformation/AlbumController.php
2020-04-12 10:18:17 +02:00

26 lines
570 B
PHP

<?php
namespace App\Http\Controllers\API\MediaInformation;
use App\Models\Album;
use Illuminate\Http\JsonResponse;
/**
* @group 5. Media information
*/
class AlbumController extends Controller
{
/**
* Get album's extra information
*
* Get extra information about an album via Last.fm.
*
* @responseFile responses/mediaInformation.album.show.json
*
* @return JsonResponse
*/
public function show(Album $album)
{
return response()->json($this->mediaInformationService->getAlbumInformation($album));
}
}