Displaying posts with image, time and content

This commit is contained in:
shobhitm23
2019-10-28 01:33:20 -04:00
parent 70a12dcca4
commit d6a0b0b1bc
4 changed files with 70 additions and 5 deletions

View File

@@ -41,8 +41,4 @@ exports.getallPostsforUser = (req, res) => {
console.error(err);
return res.status(500).json({error: 'Failed to fetch all posts written by specific user.'})
})
};
exports.getFilteredPosts = (req, res) => {
admin.firestore().collection('posts').where('userHandle', '==', 'new user').where('microBlogTopics', '==')
};