mirror of
https://github.com/koel/koel
synced 2024-12-22 02:23:14 +00:00
21 lines
415 B
PHP
21 lines
415 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Download;
|
|
|
|
use App\Models\Album;
|
|
use Download;
|
|
|
|
class AlbumController extends Controller
|
|
{
|
|
/**
|
|
* Download all songs in an album.
|
|
*
|
|
* @param Album $album
|
|
*
|
|
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
|
|
*/
|
|
public function download(Album $album)
|
|
{
|
|
return response()->download(Download::from($album));
|
|
}
|
|
}
|