-
Notifications
You must be signed in to change notification settings - Fork 1
Frontend Routes
This page display a log in form
GET/loginPOST/login
This page displays a sign up form
GET/signupPOST/signup
This page displays the most recent questions and answers
- unauthorized user have/can:
- navigation bar: login/signup button, search bar
- logged in user have/can:
- navigation bar: add question and logout buttons, search bar
- upvote the questions on this page.
- menu on the left includes: My questions, My answers buttons.
GET/
This page displays a form with which a logged in user can craft a new question, as well as
GET /add-questionPOST /add-question
This page displays the most recent questions posted by the logged in user, as well as a navigation bar with add question and logout buttons for logged in user. Logged in user have menu on the left includes: My questions, My answers buttons.
GET/my-questions
This page display a form where you can edit question.
GET/questions/:questionId/editPOST/questions/:questionId/edit
This page display a confirmation page to delete the question.
POST/questions/:questionId/delete
This page displays the question clicked by logged in user or non-logged in user, as well as a navigation bar.
GET/questions/:questionId
This page displays the most recent answers posted by the logged in user, as well as a navigation bar with add question and logout buttons for logged in user. Logged in user have menu on the left includes: My questions, My answers buttons.
GET/my-answers
This page display a form where you can edit answer.
GET/answers/:answerId/editPOST/answers/:answerId/edit
This page display a confirmation page to delete the answer.
POST/answers/:answerId/delete