Files
2023-03-01 08:29:01 -06:00

18 lines
570 B
PHP

<?php
declare(strict_types=1);
use App\Constants\Config\FlagConstants;
use App\Http\Controllers\Wiki\Video\VideoController;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
$isVideoStreamingAllowed = Str::of('is_feature_enabled:')
->append(FlagConstants::ALLOW_VIDEO_STREAMS_FLAG_QUALIFIED)
->append(',Video Streaming Disabled')
->__toString();
Route::get('/{video}', [VideoController::class, 'show'])
->name('video.show')
->middleware([$isVideoStreamingAllowed, 'without_trashed:video', 'throttle:video', 'record_view:video']);