AspireCloud/app/Contracts/Downloads/Downloader.php
Chuck Adams 025e93e3d4
Stream downloads instead of redirecting (#145)
* feat: download service serves responses directly now

* refactor: make DownloadService stream directly

* tweak: set up some real caching (default 10 days)

* config: use app.aspirecloud.download.base

* fix: move /download routes from web.php to api.php
2025-01-27 15:52:44 -07:00

13 lines
278 B
PHP

<?php
declare(strict_types=1);
namespace App\Contracts\Downloads;
use App\Enums\AssetType;
use Symfony\Component\HttpFoundation\Response;
interface Downloader
{
public function download(AssetType $type, string $slug, string $file, ?string $revision = null): Response;
}