Files
animethemes-server/routes/video.php
T
2025-05-12 02:47:47 -03:00

19 lines
557 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, 'record_view:video', 'throttle:video']);