mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
8b6b196c99
* feat: migrate encoding scripts from github to platform * style: fix StyleCI finding * fix: don't concatenate updated videos when attempting to attach entry on video upload * fix(api): fix field dependencies & feat(admin): upload script from video detail screen
18 lines
572 B
PHP
18 lines
572 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Constants\Config\FlagConstants;
|
|
use App\Http\Controllers\Wiki\Video\Script\ScriptController;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Illuminate\Support\Str;
|
|
|
|
$isScriptDownloadingAllowed = Str::of('is_feature_enabled:')
|
|
->append(FlagConstants::ALLOW_SCRIPT_DOWNLOADING_FLAG_QUALIFIED)
|
|
->append(',Script Downloading Disabled')
|
|
->__toString();
|
|
|
|
Route::get('/{videoscript}', [ScriptController::class, 'show'])
|
|
->name('videoscript.show')
|
|
->middleware([$isScriptDownloadingAllowed, 'without_trashed:videoscript']);
|