Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Add authentication middleware to download.backup route in web.php

Andras Bacsaic961e6d9c715
diff --git a/routes/web.php b/routes/web.php
index 959cc06be4..a05aa8e3e9 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -131,7 +131,7 @@ Route::get('/download/backup/{executionId}', function () {
} catch (\Throwable $e) {
throw $e;
}
-})->name('download.backup');
+})->middleware('auth')->name('download.backup');
Route::get('/admin', AdminIndex::class)->name('admin.index');