mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2026-03-10 21:25:04 +00:00
Merge pull request #19 from ClaytonWWilson/user-line
added entering topics field and database call for adding topics when …
This commit is contained in:
@@ -11,6 +11,7 @@ exports.putPost = (req, res) => {
|
||||
createdAt: new Date().toISOString(),
|
||||
likeCount: 0,
|
||||
commentCount: 0,
|
||||
microBlogTopics: req.body.microBlogTopics
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -43,7 +43,8 @@ const {putPost, getallPostsforUser} = require('./handlers/post');
|
||||
app.get('/getallPostsforUser', getallPostsforUser);
|
||||
|
||||
// Adds one post to the database
|
||||
app.post('/putPost', fbAuth, putPost);
|
||||
app.post('/putPost', firebaseAuth, putPost);
|
||||
|
||||
|
||||
|
||||
exports.api = functions.https.onRequest(app);
|
||||
Reference in New Issue
Block a user