mirror of
https://github.com/koel/koel
synced 2024-12-22 10:33:16 +00:00
ab4f2210d1
* Add the API documentation * Apply fixes from StyleCI (#871)
26 lines
571 B
PHP
26 lines
571 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));
|
|
}
|
|
}
|