API Routes - AustinW24/instapaws GitHub Wiki
API routes
/api/session
This route takes login information and signs the user in and logs them out
GET /api/sessionPOST /api/sessionDELETE /api/session
/api/users
This route takes the signup information and creates a new user and logs them in.
POST /api/users
/api/users/:id
This route returns a users profile information where they will be able to read, and update info.
GET /api/users/:idPOST /api/users/:id
/api/posts
This route returns the users posts, as well as creates posts, edits posts, and deletes them.
GET /api/postsPOST /api/posts/:idPUT /api/posts/:idDELETE /api/posts/:id