Reformat code

This commit is contained in:
Leon Liang
2019-10-27 02:53:12 -04:00
parent 1c81ae1663
commit 13a1401759
5 changed files with 258 additions and 224 deletions

View File

@@ -44,8 +44,7 @@ app.get("/user", fbAuth, getAuthenticatedUser);
/*------------------------------------------------------------------*
* handlers/post.js *
*------------------------------------------------------------------*/
const { getallPostsforUser, putPost
} = require("./handlers/post");
const { getallPostsforUser, putPost } = require("./handlers/post");
app.get("/getallPostsforUser", getallPostsforUser);
@@ -55,11 +54,7 @@ app.post("/putPost", fbAuth, putPost);
/*------------------------------------------------------------------*
* handlers/topic.js *
*------------------------------------------------------------------*/
const {
putTopic,
getAllTopics,
deleteTopic
} = require("./handlers/topic");
const { putTopic, getAllTopics, deleteTopic } = require("./handlers/topic");
// add topic to database
app.post("/putTopic", fbAuth, putTopic);