Improved speed of search and made it fuzzy search

This commit is contained in:
2019-12-03 00:54:06 -05:00
parent 6e32b25861
commit 1a02b53d0f
4 changed files with 123 additions and 50 deletions

View File

@@ -11,6 +11,7 @@ app.use(cors());
*------------------------------------------------------------------*/
const {
getAuthenticatedUser,
getAllHandles,
getUserDetails,
getProfileInfo,
login,
@@ -39,6 +40,10 @@ app.delete("/delete", fbAuth, deleteUser);
app.post("/getUserDetails", fbAuth, getUserDetails);
// Returns a list of all usernames
// Used for searching
app.get("/getAllHandles", fbAuth, getAllHandles);
// Returns all profile data of the currently logged in user
app.get("/getProfileInfo", fbAuth, getProfileInfo);