mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-27 20:18:49 +01:00
feat: add static link for latest db dumps (#485)
This commit is contained in:
1 parent
eb7f07fe34
commit
c4220e55d0
29 files changed
+956
-169
No files matched your search
@@ -4,12 +4,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Http\Controllers\Wiki\Video\Script;
|
||||
|
||||
use App\Constants\Config\VideoConstants;
|
||||
use App\Actions\Http\Wiki\Video\Script\ScriptDownloadAction;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Wiki\Video\VideoScript;
|
||||
use Illuminate\Filesystem\FilesystemAdapter;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Symfony\Component\HttpFoundation\StreamedResponse;
|
||||
|
||||
/**
|
||||
@@ -25,9 +22,8 @@ class ScriptController extends Controller
|
||||
*/
|
||||
public function show(VideoScript $videoscript): StreamedResponse
|
||||
{
|
||||
/** @var FilesystemAdapter $fs */
|
||||
$fs = Storage::disk(Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED));
|
||||
$action = new ScriptDownloadAction($videoscript);
|
||||
|
||||
return $fs->download($videoscript->path);
|
||||
return $action->download();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user