summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-01-19 00:15:09 +0100
committerCyborus <cyborus@cyborus.xyz>2024-01-19 00:15:09 +0100
commit63c6dc9f7f9a612294e8f3c3ffa3047f61f309b9 (patch)
tree1998f3a4a5b8bdd630277dae5fdcaa01ae9e4cc7 /src/lib.rs
parenthandle datetime (de)serialization (diff)
downloadforgejo-api-63c6dc9f7f9a612294e8f3c3ffa3047f61f309b9.tar.xz
forgejo-api-63c6dc9f7f9a612294e8f3c3ffa3047f61f309b9.zip
fix http methods
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 90e6cc6..b877b01 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -153,12 +153,12 @@ impl Forgejo {
fn delete(&self, path: &str) -> reqwest::RequestBuilder {
let url = self.url.join("api/v1/").unwrap().join(path).unwrap();
- self.client.post(url)
+ self.client.delete(url)
}
fn patch(&self, path: &str) -> reqwest::RequestBuilder {
let url = self.url.join("api/v1/").unwrap().join(path).unwrap();
- self.client.post(url)
+ self.client.patch(url)
}
async fn execute(&self, request: Request) -> Result<reqwest::Response, ForgejoError> {