Files
paranarimasu 8b6b196c99 feat(admin): migrate db dumps from github to platform (#465)
* 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
2022-09-24 00:01:37 -05:00

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']);