refactor: Use Tauri Http API

This commit is contained in:
MystiPanda
2024-01-14 18:35:10 +08:00
Unverified
parent ba7242a815
commit a6acb15a00
5 changed files with 67 additions and 55 deletions

View File

@@ -39,7 +39,7 @@ window-shadows = { version = "0.2" }
tokio = { version = "1", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
reqwest = { version = "0.11", features = ["json", "rustls-tls"] }
tauri = { version = "1.5", features = [ "notification-all", "icon-png", "clipboard-all", "global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all"] }
tauri = { version = "1.5", features = [ "http-all", "notification-all", "icon-png", "clipboard-all", "global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all"] }
tauri-plugin-websocket = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
[target.'cfg(windows)'.dependencies]

View File

@@ -54,6 +54,10 @@
},
"notification": {
"all": true
},
"http": {
"all": true,
"scope": ["http://**", "https://**"]
}
},
"windows": [],