Handle redirect from after POST request from backup restore

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-10-30 20:01:01 +00:00
parent f47a8664f9
commit e554a80589

View file

@ -224,6 +224,11 @@ Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'authorize:superuser
[SettingsController::class, 'postUploadBackup']
)->name('settings.backups.upload');
// Handle redirect from after POST request from backup restore
Route::get('/restore/{filename?}', function () {
return redirect(route('settings.backups.index'));
});
Route::get('/', [SettingsController::class, 'getBackups'])->name('settings.backups.index');
});