Added backup/restore function

This commit is contained in:
Henry Whitaker
2020-04-09 20:22:43 +01:00
parent f44fe2616d
commit 970cc05915
13 changed files with 660 additions and 4 deletions

View File

@@ -28,3 +28,12 @@ Route::group([
Route::get('run', 'SpeedtestController@run')
->name('speedtest.run');
});
Route::group([
'middleware' => 'api'
], function () {
Route::get('backup', 'BackupController@backup')
->name('data.backup');
Route::post('restore', 'BackupController@restore')
->name('data.restore');
});