Skip to content

Frontend Routes

Timothy Wieser edited this page May 28, 2021 · 13 revisions

User-facing routes

/

Home Page

This rout will display the home page which will have links to navigate the website including login, signup, search, and question.

  • GET /


/users/:id

Users Profile

This route will bring a logged in user to their profile page

  • GET /user/:id


/users/login

Log in page

This route will bring the user to a log in form

  • GET /login
  • POST /login


/users/signup

Sign up page

This route will bring new users to a sign up page to create an account

  • GET /signup
  • POST /signup


/questions

Questions page

This route will display a list of all of the questions in order by popularity and contain a link to ask a question.

  • GET /questions


/questions/ask

Ask a question page

This route will bring the user to a from to submit a question

  • GET /questions/ask
  • POST /questions/ask


/questions/:id

Individual Question page

This route will display an individual question and include the ability to answer the question and view and vote on other questions.

  • GET /questions/:id
  • POST /questions/:id
  • POST /question/:id/votes
  • POST /question/:id/answers/:id/votes


/search

Search Page

This route will display a list of questions that contain the search keyword entered by a visitor or user.

  • GET /search
  • POST /search