Skip to content

Frontend Routes

jmthorn edited this page Apr 5, 2021 · 22 revisions

User-facing routes

Log in page

/login

This page displays a log in form

Backend routes included:

  • GET /login
  • POST /login

Sign up page

/signup

This page displays a signup form.

Backend routes included:

  • GET /signup
  • POST /signup

Homepage

/

This page displays a collection of books for the user to browse, as well as navigation to the user's bookshelves and profile. The user will also have the ability to add a book to the BrainFood book collection for other users to review or add to their bookshelves.

Backend routes included:

  • GET /home
  • GET /books
  • POST /books

MyBookshelf

/bookshelves/:id

This page displays all books that have been added to an individual bookshelf. The user will also be able to navigate to other bookshelves and create or delete a bookshelf.

Backend routes included:

  • GET /bookshelves/:id
  • POST /bookshelves
  • DELETE /bookshelves/:id
  • POST /bookshelves-to-books
  • DELETE /bookshelves-to-books/:id

Book Page

/books/:id

This page displays individual book with associated reviews. Logged in users can review a book on this page and can update or delete their review. The user can also add tags and a status to a book.

Backend routes included:

  • GET /books/:id
  • PUT /books/:id
  • DELETE /books/:id
  • GET /books/:id/reviews
  • POST /books/:id/reviews
  • PUT /books/:id/reviews/:id
  • DELETE /books/:id/reviews/:id
  • GET /books/:id/tags
  • POST /books/:id/tags
  • PUT /books/:id/tags/:id
  • DELETE /books/:id/tags/:id
  • GET /books/:id/users/:id/readstatus
  • POST /books/:id/users/:id/readstatus
  • PUT /books/:id/users/:id/readstatus

User Profile

/users/:id

This page displays an individual user's profile, with the ability to edit or delete the profile account page.

Backend routes included:

  • GET /users/:id
  • PATCH /users/:id
  • DELETE /users/:id

Clone this wiki locally