koel/app/Http/Controllers/API/Download/ArtistController.php

25 lines
487 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers\API\Download;
use App\Models\Artist;
/**
* @group 6. Download
*/
class ArtistController extends Controller
{
/**
2020-04-07 21:41:30 +00:00
* Download all songs by an artist.
*
* Don't see why one would need this, really.
* Let's pray to God the user doesn't trigger this on Elvis.
*
* @response []
*/
2018-08-18 11:51:52 +00:00
public function show(Artist $artist)
{
2018-08-18 11:51:52 +00:00
return response()->download($this->downloadService->from($artist));
}
}