- Create users from one endpoint with firbase-admin
- Login User endpoin with Firebase auth
- Midleware function to decode user token
- CRUD Feature with sequelize Postgress DB
- Protectected routing
- https://sequelcms.herokuapp.com/api/landing : GET all landing pages
- https://sequelcms.herokuapp.com/api/landing : POST CREATE A LP
- https://sequelcms.herokuapp.com/api/landing/id : PUT UPDATE LP Data (Protected)
-# Register
//user data
{
"name": "Bode",
"email": "English@gmail.com",
"password": "helloworld"
}
-#Login
//request body (returns a token you will use to hit protected routs if credential is correct)
{
"email": "English@gmail.com",
"password": "helloworld"
}
- https://sequelcms.herokuapp.com/api/landing/ID : PUT -# Updates Landing Page Data
//
headers: {
authtoken: `YOUR_AUTH_TOKEN`,
},