added user post tuple

This commit is contained in:
Leon Liang
2019-12-05 17:22:55 -05:00
parent de72bd9223
commit 30df98343e
5 changed files with 470 additions and 345 deletions

View File

@@ -144,7 +144,8 @@ const {
putTopic,
getAllTopics,
deleteTopic,
getUserTopics
getUserTopics,
putNewTopic
} = require("./handlers/topic");
// add topic to database
@@ -159,4 +160,6 @@ app.post("/deleteTopic", fbAuth, deleteTopic);
// get topic for this user
app.post("/getUserTopics", fbAuth, getUserTopics);
app.post("/putNewTopic", fbAuth, putNewTopic);
exports.api = functions.https.onRequest(app);