mirror of
https://github.com/Waradu/streamshare.git
synced 2025-04-21 11:54:09 +02:00
fixed delet function naming
This commit is contained in:
parent
04846fc51a
commit
15085a7a09
4 changed files with 5 additions and 5 deletions
|
@ -90,11 +90,11 @@ pub async fn upload(file_path: &str) -> Result<(String, String), Box<dyn std::er
|
|||
))
|
||||
}
|
||||
|
||||
pub async fn delete(identifier: &str, deltoken: &str) -> Result<(), Box<dyn std::error::Error>> {
|
||||
pub async fn delete(file_identifier: &str, deletion_token: &str) -> Result<(), Box<dyn std::error::Error>> {
|
||||
let client = Client::new();
|
||||
let delete_url = format!(
|
||||
"https://streamshare.wireway.ch/api/delete/{}/{}",
|
||||
identifier, deltoken
|
||||
file_identifier, deletion_token
|
||||
);
|
||||
|
||||
let res = client.delete(&delete_url).send().await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue