mirror of
https://github.com/koel/koel
synced 2024-12-20 01:23:16 +00:00
15 lines
345 B
PHP
15 lines
345 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Download;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Artist;
|
|
use App\Services\DownloadService;
|
|
|
|
class DownloadArtistController extends Controller
|
|
{
|
|
public function __invoke(Artist $artist, DownloadService $download)
|
|
{
|
|
return response()->download($download->from($artist));
|
|
}
|
|
}
|