mirror of
https://github.com/koel/koel
synced 2024-12-26 12:33:06 +00:00
15 lines
305 B
PHP
15 lines
305 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Download;
|
|
|
|
use App\Models\Playlist;
|
|
|
|
class PlaylistController extends Controller
|
|
{
|
|
public function show(Playlist $playlist)
|
|
{
|
|
$this->authorize('owner', $playlist);
|
|
|
|
return response()->download($this->downloadService->from($playlist));
|
|
}
|
|
}
|