koel/app/Http/Controllers/Download/AlbumController.php
2022-07-29 09:04:44 +02:00

19 lines
401 B
PHP

<?php
namespace App\Http\Controllers\Download;
use App\Http\Controllers\Controller;
use App\Models\Album;
use App\Services\DownloadService;
class AlbumController extends Controller
{
public function __construct(private DownloadService $downloadService)
{
}
public function show(Album $album)
{
return response()->download($this->downloadService->from($album));
}
}