mirror of
https://github.com/koel/koel
synced 2024-11-15 08:57:16 +00:00
15 lines
340 B
PHP
15 lines
340 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Download;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Album;
|
|
use App\Services\DownloadService;
|
|
|
|
class DownloadAlbumController extends Controller
|
|
{
|
|
public function __invoke(Album $album, DownloadService $download)
|
|
{
|
|
return response()->download($download->from($album));
|
|
}
|
|
}
|