Install packages
npm install
Start server
node index
Routes:
POST /register : Register a user
{
"name": "joe",
"email": "[email protected]",
"username": "joe123",
"password": "mypass123",
"password2": "mypass123"
}
POST /login
{
"username": "joe123",
"password": "mypass123"
}
GET /logout
GET /user
GET /auth/facebook