mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Added new backup routes
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0e21a95817
commit
542ab75d89
|
@ -189,6 +189,14 @@ Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'authorize:superuser
|
|||
[SettingsController::class, 'postBackups']
|
||||
)->name('settings.backups.create');
|
||||
|
||||
Route::post('/restore/{filename}',
|
||||
[SettingsController::class, 'postRestore']
|
||||
)->name('settings.backups.restore');
|
||||
|
||||
Route::post('/upload',
|
||||
[SettingsController::class, 'postUploadBackup']
|
||||
)->name('settings.backups.upload');
|
||||
|
||||
Route::get('/', [SettingsController::class, 'getBackups'])->name('settings.backups.index');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue