fix: add catch all route
This commit is contained in:
parent
02c8b9f471
commit
b06b465ffa
@ -69,7 +69,7 @@
|
||||
@if ($servers->count() === 1)
|
||||
<div class="grid grid-cols-1 gap-2">
|
||||
@else
|
||||
<div class="grid grid-cols-3 gap-2">
|
||||
<div class="grid grid-cols-1 gap-2 xl:grid-cols-2">
|
||||
@endif
|
||||
@foreach ($servers as $server)
|
||||
<a wire:navigate href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}"
|
||||
|
@ -240,3 +240,10 @@
|
||||
]);
|
||||
})->name('destination.show');
|
||||
});
|
||||
|
||||
Route::any('/{any}', function () {
|
||||
if (auth()->user()) {
|
||||
return redirect('/');
|
||||
}
|
||||
return redirect('/login');
|
||||
})->where('any', '.*');
|
||||
|
Loading…
Reference in New Issue
Block a user