Skip to content

Commit fbf2156

Browse files
committed
fix: post comment api
1 parent 2c92368 commit fbf2156

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/api/post/get_comment_list.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ impl Post {
3131
let client = reqwest::Client::new();
3232

3333
let req = {
34-
let url = openapi!(
35-
"https://api.cnblogs.com/api/blogs/{}/posts/{}/comments",
36-
blog_app,
37-
post_id
38-
);
34+
let url = openapi!("/blogs/{}/posts/{}/comments", blog_app, post_id);
3935
client.get(url).pat_auth(&self.pat)
4036
};
4137
let resp = req.send().await?;

0 commit comments

Comments
 (0)