diff --git a/routes/web.php b/routes/web.php index 580bde2..cf3233c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -14,13 +14,14 @@ use App\Http\Controllers\Hosting\TeamController; use App\Http\Controllers\NotificationController; use Illuminate\Support\Facades\Route; +Route::get('/', fn () => auth()->check() + ? redirect()->route('hosting.dashboard') + : redirect()->route('sso.connect'))->name('hosting.root'); + $serversApp = fn (string $path = ''): string => 'https://'.config('app.servers_domain').($path !== '' ? '/'.ltrim($path, '/') : ''); // Ladill Hosting — authenticated app for buying + managing hosting (hosting.ladill.com). -Route::get('/', fn () => auth()->check() - ? redirect()->route('hosting.dashboard') - : redirect()->away((string) config('ladill.marketing_url')))->name('hosting.root'); Route::get('/login', [SsoLoginController::class, 'connect'])->name('login'); Route::get('/sso/connect', [SsoLoginController::class, 'connect'])->name('sso.connect');