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