-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend Routes
Timothy Wieser edited this page May 28, 2021
·
13 revisions
This rout will display the home page which will have links to navigate the website including login, signup, search, and question.
GET /
This route will bring a logged in user to their profile page
GET /user/:id
This route will bring the user to a log in form
GET /login
POST /login
This route will bring new users to a sign up page to create an account
GET /signup
POST /signup
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
This route will bring the user to a from to submit a question
GET /questions/ask
POST /questions/ask
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
This route will display a list of questions that contain the search keyword entered by a visitor or user.
GET /search
POST /search