relay: sender: client: added route to signal successfull download to relay

This commit is contained in:
Patryk Hegenberg 2024-04-22 21:59:45 +02:00
parent 5db7d6991c
commit 67b3931b58
4 changed files with 71 additions and 6 deletions

View file

@ -26,7 +26,7 @@ pub async fn send_info(relay: &str, file: &str) -> Result<String> {
let client = Client::new();
let res = client
.post(relay.to_string() + "/upload")
.post(format!("{}/upload", relay))
.json(&map)
.send()
.await?;