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