Adding tags filters to profiles

This commit is contained in:
Adolfo Reyna
2022-12-30 09:31:11 -05:00
parent ee231ae3af
commit c725eda32f
3 changed files with 110 additions and 5 deletions

4
API.js
View File

@@ -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);
},