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/session
  • POST /api/session
  • DELETE /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/:id
  • POST /api/users/:id

/api/posts

This route returns the users posts, as well as creates posts, edits posts, and deletes them.

  • GET /api/posts
  • POST /api/posts/:id
  • PUT /api/posts/:id
  • DELETE /api/posts/:id