mirror of
https://github.com/koel/koel
synced 2024-12-26 20:43:05 +00:00
19 lines
401 B
PHP
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));
|
|
}
|
|
}
|