added search page

This commit is contained in:
Leon Liang
2019-10-31 16:54:34 -04:00
parent 35e5cf8e9d
commit 1842eef2f8
5 changed files with 224 additions and 110 deletions

View File

@@ -16,7 +16,8 @@ const {
login,
signup,
deleteUser,
updateProfileInfo
updateProfileInfo,
getUserHandles
} = require("./handlers/users");
// Adds a user to the database and registers them in firebase with
@@ -41,6 +42,9 @@ app.post("/updateProfileInfo", fbAuth, updateProfileInfo);
app.get("/user", fbAuth, getAuthenticatedUser);
// get user handles with search phase
app.get("/getUserHandles", fbAuth, getUserHandles);
/*------------------------------------------------------------------*
* handlers/post.js *
*------------------------------------------------------------------*/