From d4c3a27da717155b245ebbf14f8f81b01f96996b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sun, 3 Nov 2024 22:20:44 +0100 Subject: [PATCH] refactor web.php --- routes/web.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index ae2ce244c..6ea3bc857 100644 --- a/routes/web.php +++ b/routes/web.php @@ -221,6 +221,8 @@ Route::middleware(['auth', 'verified'])->group(function () { Route::get('/proxy/logs', ProxyLogs::class)->name('server.proxy.logs'); Route::get('/terminal', ExecuteContainerCommand::class)->name('server.command'); }); + Route::get('/destinations', DestinationIndex::class)->name('destination.index'); + Route::get('/destination/{destination_uuid}', DestinationShow::class)->name('destination.show'); // Route::get('/security', fn () => view('security.index'))->name('security.index'); Route::get('/security/private-key', SecurityPrivateKeyIndex::class)->name('security.private-key.index'); @@ -312,8 +314,7 @@ Route::middleware(['auth'])->group(function () { return response()->json(['message' => $e->getMessage()], 500); } })->name('download.backup'); - Route::get('/destinations', DestinationIndex::class)->name('destination.index'); - Route::get('/destination/{destination_uuid}', DestinationShow::class)->name('destination.show'); + }); Route::any('/{any}', function () {