Files
animethemes-server/routes/video.php
T
2025-09-05 14:16:44 -03:00

19 lines
536 B
PHP

<?php
declare(strict_types=1);
use App\Features\AllowVideoStreams;
use App\Http\Controllers\Wiki\Video\VideoController;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
use Laravel\Pennant\Middleware\EnsureFeaturesAreActive;
$isVideoStreamingAllowed = Str::of(EnsureFeaturesAreActive::class)
->append(':')
->append(AllowVideoStreams::class)
->__toString();
Route::get('/{video}', [VideoController::class, 'show'])
->name('video.show')
->middleware([$isVideoStreamingAllowed, 'throttle:video']);