summaryrefslogtreecommitdiffstats
path: root/src/routes/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/mod.rs')
-rw-r--r--src/routes/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/mod.rs b/src/routes/mod.rs
index 0c8969f..e3d6c76 100644
--- a/src/routes/mod.rs
+++ b/src/routes/mod.rs
@@ -461,8 +461,8 @@ async fn handler_comment_like(
res_to_error(
ctx.http_client
.request(for_client(
- hyper::Request::post(format!(
- "{}/api/unstable/comments/{}/like",
+ hyper::Request::put(format!(
+ "{}/api/unstable/comments/{}/your_vote",
ctx.backend_host, comment_id
))
.body(Default::default())?,
@@ -504,8 +504,8 @@ async fn handler_comment_unlike(
res_to_error(
ctx.http_client
.request(for_client(
- hyper::Request::post(format!(
- "{}/api/unstable/comments/{}/unlike",
+ hyper::Request::delete(format!(
+ "{}/api/unstable/comments/{}/your_vote",
ctx.backend_host, comment_id
))
.body(Default::default())?,