mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Merge pull request #13812 from snipe/bug/sc-23897
Handle redirect from after POST request from backup restore
This commit is contained in:
commit
518c43680d
|
@ -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');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue