Get user's posts works now

This commit is contained in:
Aaron Sun
2019-10-29 22:25:38 -04:00
parent 6db14e3868
commit 8438ce27cf
3 changed files with 11 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ app.get("/user", fbAuth, getAuthenticatedUser);
const { getallPostsforUser, putPost
} = require("./handlers/post");
app.get("/getallPostsforUser", getallPostsforUser);
app.get("/getallPostsforUser", fbAuth, getallPostsforUser);
// Adds one post to the database
app.post("/putPost", fbAuth, putPost);