mirror of
https://github.com/koel/koel
synced 2024-12-22 02:23:14 +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));
|
|
}
|
|
}
|