Adding tags filters to profiles
This commit is contained in:
4
API.js
4
API.js
@@ -135,6 +135,10 @@ const API = {
|
||||
if (userid) return getCall("/post/usr/" + userid);
|
||||
return getCall("/post/");
|
||||
},
|
||||
getPostsWithTag(userid, tag = "images") {
|
||||
if (userid) return getCall("/post/usr/" + userid + "/" + tag);
|
||||
return getCall("/post/" + tag);
|
||||
},
|
||||
getPost(postid) {
|
||||
return getCall("/post/" + postid);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user