mirror of
https://github.com/koel/koel
synced 2024-12-23 19:13:06 +00:00
4858514225
This reverts commit c2e358bdc8
.
26 lines
570 B
PHP
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));
|
|
}
|
|
}
|