Simple API using express, express-session and jsonwebtoken to test authorization
/
: shows the welcome message/register
: add an user to access the API/login
: authorizes user to access the API/friends
: manages friends object
GET /
: welcome message to APIPOST /register
: registers user with JSON provided in bodyPOST /login
: authorizes user to access the API with JSON provided in bodyGET /friends/:email
: shows info about friend that has the email providedPOST /friends
: adds a friend using email as ID with JSON provided on bodyPUT /friends/:email
: updates the information of friend that matched IDDELETE /friends/:email
: delete friend that matches ID