group(function () { // Route di fallback generale Route::any('/legacy/{path}', [LegacyController::class, 'index']) ->name('legacy') ->where('path', '.*') ->withoutMiddleware([\App\Http\Middleware\VerifyCsrfToken::class]); });