mirror of
https://github.com/koel/koel
synced 2024-12-23 19:13:06 +00:00
20 lines
377 B
PHP
20 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());
|
|
}
|
|
}
|