mirror of
https://github.com/koel/koel
synced 2024-12-23 19:13:06 +00:00
ab4f2210d1
* Add the API documentation * Apply fixes from StyleCI (#871)
24 lines
487 B
PHP
24 lines
487 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Download;
|
|
|
|
use App\Models\Artist;
|
|
|
|
/**
|
|
* @group 6. Download
|
|
*/
|
|
class ArtistController extends Controller
|
|
{
|
|
/**
|
|
* 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 []
|
|
*/
|
|
public function show(Artist $artist)
|
|
{
|
|
return response()->download($this->downloadService->from($artist));
|
|
}
|
|
}
|