mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
517ba0ebf8
* feat: add playlist resources * style: fix StyleCI findings * fix(admin): address nova exceptions
18 lines
527 B
PHP
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']);
|