mirror of
https://github.com/koel/koel
synced 2024-12-25 12:03:06 +00:00
19 lines
406 B
PHP
19 lines
406 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Download;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Artist;
|
|
use App\Services\DownloadService;
|
|
|
|
class ArtistController extends Controller
|
|
{
|
|
public function __construct(private DownloadService $downloadService)
|
|
{
|
|
}
|
|
|
|
public function show(Artist $artist)
|
|
{
|
|
return response()->download($this->downloadService->from($artist));
|
|
}
|
|
}
|