Frontend Routes - Hieu-Ma/ggplays GitHub Wiki

User-facing routes

/user/login

Log in page

This page displays a log in form

  • GET /login
  • POST /login
  • POST /demo-user

/user/logout

  • POST /logout

/user/sign-up

Sign up page

This page displays a sign up form

  • GET /sign-up
  • POST /sign-up

/

This page displays the most recent and most popular games with their rating, as well as a navigation bar with login/signup or logout buttons.

  • GET /

/games/:id/

This page displays the game's page that will include the developer, genre, platform, description, and reviews. Each game's page has an update and delete review button if it belongs to the currently logged in user. A user can create a review only if they are a logged in user.

  • GET /games/:id/

/games/:id/review

This page displays a form to create a review for the associated game.

  • GET /games/:id/review
  • POST /games/:id/review
  • POST /reviews/:id/edit
  • POST /reviews/:id/delete

/profile

This page displays the user's profile which includes their reviews and links to their game shelves.

  • GET /profile
  • POST /reviews/:id/edit
  • POST /reviews/:id/delete

/game-shelves

This page displays the user's profile which includes their links to their game shelves and reviews.

  • GET /game-shelves
  • POST /add
  • POST /remove