fix: add catch all route

This commit is contained in:
Andras Bacsai 2023-12-13 15:29:45 +01:00
parent 02c8b9f471
commit b06b465ffa
2 changed files with 8 additions and 1 deletions

View File

@ -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')]) }}"

View File

@ -240,3 +240,10 @@
]);
})->name('destination.show');
});
Route::any('/{any}', function () {
if (auth()->user()) {
return redirect('/');
}
return redirect('/login');
})->where('any', '.*');