mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Handle redirect from after POST request from backup restore
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
f47a8664f9
commit
e554a80589
|
@ -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