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

/home

This page displays a collection of books for the user to browse, as well as navigation to the user's bookshelves and profile.

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.

Backend routes included:

  • GET /bookshelves/:id
  • POST /bookshelves
  • GET /books/:id
  • PUT /books/:id
  • DELETE /books/:id

Book Page

/books/:id

This page displays individual book with associated comments, as well as a navigation bar with login/signup or logout buttons. Logged in users can comment on this page and can update or delete their comments.

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