You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
John Sims edited this page Apr 29, 2021
·
1 revision
Frontend Routes
This web app contains user-facing routes that a user can access and interact with.
/login
This page displays a log in form.
Get /login
Post /login
/register
An individual may create a new account. This page will display a signup form.
Get /signup
POST /register
/questions
This page will display five most recent questions, as well as a navigation bar with login/signup or logout buttons. Each question has an update and delete button if it belongs to the currently logged in user, and each question shows the highest voted answer underneath. Logged in users can upvote the questions and answers on this page. Users can click the comments button under each question to show or hide comments. There is a search function at the top. And, a new question button.
GET /
POST /questions/:id/tags
POST /questions/:id/upvotes
DELETE /questions/:id/tags
DELETE /questions/:id/upvotes
EDIT /questions
/submitQuestion
This page will show the form to submit a new question.
POST /submitQuestion
/questions/:id/
This page will display all current answers for a particular question and their current voting status.