mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
fix: add catch all route
This commit is contained in:
@@ -240,3 +240,10 @@ Route::middleware(['auth'])->group(function () {
|
||||
]);
|
||||
})->name('destination.show');
|
||||
});
|
||||
|
||||
Route::any('/{any}', function () {
|
||||
if (auth()->user()) {
|
||||
return redirect('/');
|
||||
}
|
||||
return redirect('/login');
|
||||
})->where('any', '.*');
|
||||
|
||||
Reference in New Issue
Block a user