From d2527564d80995edec1271b35a5e15354438dc1a Mon Sep 17 00:00:00 2001 From: IamSarina <117054745+Iam54r1n4@users.noreply.github.com> Date: Sat, 22 Feb 2025 11:33:13 +0330 Subject: [PATCH] Fix method of /restore API --- core/scripts/webpanel/routers/api/v1/config/hysteria.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/webpanel/routers/api/v1/config/hysteria.py b/core/scripts/webpanel/routers/api/v1/config/hysteria.py index 58d5c25..9a3489b 100644 --- a/core/scripts/webpanel/routers/api/v1/config/hysteria.py +++ b/core/scripts/webpanel/routers/api/v1/config/hysteria.py @@ -183,7 +183,7 @@ async def backup_api(): raise HTTPException(status_code=500, detail=f'Error: {str(e)}') -@router.get('/restore', response_model=DetailResponse, summary='Restore Hysteria2 Configuration') +@router.post('/restore', response_model=DetailResponse, summary='Restore Hysteria2 Configuration') async def restore_api(f: UploadFile = File(...)): try: dst_dir_path = '/opt/hysbackup/' # TODO: get this path from .env