feat: add database restore from uploaded SQL file with RESTORE confirmation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
GuavaPopper
2026-06-04 14:53:36 +07:00
parent 3ecf7d937c
commit b76284d8b7
3 changed files with 104 additions and 0 deletions
+1
View File
@@ -85,6 +85,7 @@ Route::middleware('auth')->group(function () {
Route::get('/backup/list', [BackupController::class, 'listBackups']);
Route::get('/backup/download/{filename}', [BackupController::class, 'downloadStored'])
->where('filename', '[^/]+');
Route::post('/restore', [BackupController::class, 'restore']);
Route::get('/logs', [ActivityLogController::class, 'index']);
Route::get('/stats', [ActivityLogController::class, 'stats']);