diff --git a/functions/handlers/post.js b/functions/handlers/post.js index c14c61c..2ae8d3c 100644 --- a/functions/handlers/post.js +++ b/functions/handlers/post.js @@ -1,3 +1,4 @@ +/* eslint-disable prefer-arrow-callback */ /* eslint-disable promise/always-return */ const admin = require('firebase-admin'); exports.putPost = (req, res) => { @@ -41,3 +42,7 @@ exports.getallPostsforUser = (req, res) => { 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', '==') +}; \ No newline at end of file