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

22 lines
351 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers\API\Download;
use App\Models\Album;
/**
* @group 6. Download
*/
class AlbumController extends Controller
{
/**
* Download a whole album.
*
* @response []
*/
2018-08-18 11:51:52 +00:00
public function show(Album $album)
{
2018-08-18 11:51:52 +00:00
return response()->download($this->downloadService->from($album));
}
}