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