Log in with username partially works

This commit is contained in:
Aaron Sun
2019-10-22 16:50:38 -04:00
parent 7b8e40c7b0
commit 1b66f18dd5
2 changed files with 58 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ const {
getProfileInfo,
login,
signup,
deleteUser,
updateProfileInfo
} = require("./handlers/users");
@@ -27,6 +28,9 @@ app.post("/signup", signup);
// and password
app.post("/login", login);
//Deletes user account
app.delete("/delete", deleteUser);
app.get("/getUser/:handle", getUserDetails);
// Returns all profile data of the currently logged in user