modified function to add/delete topic only from user

This commit is contained in:
Leon Liang
2019-11-21 19:59:04 -05:00
parent 3da2449050
commit 7976110e2b
2 changed files with 60 additions and 31 deletions

View File

@@ -96,7 +96,7 @@ app.post("/putTopic", fbAuth, putTopic);
app.get("/getAllTopics", fbAuth, getAllTopics);
// delete a specific topic
app.delete("/deleteTopic/:topicId", fbAuth, deleteTopic);
app.post("/deleteTopic", fbAuth, deleteTopic);
// get topic for this user
app.post("/getUserTopics", fbAuth, getUserTopics);