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
{
/**
2020-04-07 21:41:30 +00:00
* 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));
}
}