mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
23 lines
479 B
PHP
23 lines
479 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Download;
|
|
|
|
use App\Http\Requests\API\Download\Request;
|
|
use App\Models\Playlist;
|
|
use Download;
|
|
|
|
class PlaylistController extends Controller
|
|
{
|
|
/**
|
|
* Download all songs in a playlist.
|
|
*
|
|
* @param Request $request
|
|
* @param Playlist $playlist
|
|
*
|
|
* @return
|
|
*/
|
|
public function download(Request $request, Playlist $playlist)
|
|
{
|
|
return response()->download(Download::from($playlist));
|
|
}
|
|
}
|