Files
animethemes-server/routes/video.php
T
paranarimasu 517ba0ebf8 Playlists (#472)
* feat: add playlist resources

* style: fix StyleCI findings

* fix(admin): address nova exceptions
2022-10-19 00:32:06 -05:00

18 lines
527 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, 'record_view:video']);