User Routes
Closed this issue · 0 comments
GAFelton commented
User Routes
-
"/api/login" POST
Signup a new user in the users database. Takes in first_name, last_name, email, password. -
"/logout" GET
runs req.logout() and redirects to "/" -
"api/user_data" GET
get data about current user based on client-side login token. Returns an empty object if the user is not logged in, or json containing first_name, last_name, email, id.