mirror of
https://github.com/koel/koel
synced 2024-12-26 20:43:05 +00:00
21 lines
377 B
PHP
21 lines
377 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\API;
|
||
|
|
||
|
use App\Models\Album;
|
||
|
|
||
|
class AlbumController extends Controller
|
||
|
{
|
||
|
/**
|
||
|
* Get extra information about an album via Last.fm.
|
||
|
*
|
||
|
* @param Album $album
|
||
|
*
|
||
|
* @return \Illuminate\Http\JsonResponse
|
||
|
*/
|
||
|
public function getInfo(Album $album)
|
||
|
{
|
||
|
return response()->json($album->getInfo());
|
||
|
}
|
||
|
}
|