Skip to content

Frontend Routes

jujmart edited this page Jul 2, 2021 · 4 revisions

User-facing routes

/users/login

Log in page

This page displays a log in form

  • GET /users/login
  • POST /users/login

/users/signup

Sign up page

This page displays a signup form

  • GET /users/signup
  • POST /users/signup

/users/logout

This logs out a logged-in user and reroutes the user to the '/' page

  • POST /users/logout

/

This page displays the games with corresponding upvote counts, as well as the buttons for login/signup.

  • GET /games/:id/votes
  • POST /games/:id/votes

/games/:id

This gives user functionality to select a game on the homepage and upvote/comment

  • GET /games/:id
  • POST /comments
  • PUT /comments/:id
  • DELETE /comments/:id
  • GET /games/:id/votes
  • POST /games/:id/votes

Bonus: /users/:id/delete

This bonus function allows the logged-in user to delete their account

  • POST /users/:id/delete
Clone this wiki locally