koel/app/Http/Controllers/API/MediaInformation/AlbumController.php

27 lines
571 B
PHP
Raw Normal View History

<?php
2018-08-18 13:19:40 +00:00
namespace App\Http\Controllers\API\MediaInformation;
use App\Models\Album;
2017-06-04 01:30:45 +00:00
use Illuminate\Http\JsonResponse;
/**
* @group 5. Media information
*/
2018-08-18 13:19:40 +00:00
class AlbumController extends Controller
{
/**
2020-04-07 21:41:30 +00:00
* Get album's extra information.
*
* Get extra information about an album via Last.fm.
*
* @responseFile responses/mediaInformation.album.show.json
*
2017-06-04 01:30:45 +00:00
* @return JsonResponse
*/
2017-08-06 09:43:59 +00:00
public function show(Album $album)
{
2018-08-18 13:19:40 +00:00
return response()->json($this->mediaInformationService->getAlbumInformation($album));
}
}