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