Frontend Routes - John-Amini/AppOverflow GitHub Wiki
User-facing routes
/login
Log in page
This page displays a log in form
GET /login
POST /login
/signup/
Sign up page
This page displays a sign up form
GET /signup
POST /signup
/
This page displays recent questions as well as a navigation bar with login/signup or logout buttons with a navigation menu to the left. Each question has an update and delete button if it belongs to the currently logged in user.
GET /
/questions
This page displays a form with which a logged in user can create a new question as well as a navigation bar for logging out.
GET /questions
POST /questions
/questions/:id
This page displays an individual question alongside its answers and their comments. If the logged in user owns the question they can edit/delete the question with buttons respectively. Users can also upvote and downvote answers.
-
GET /questions/:id
-
PATCH/PUT /questions/:id/
-
DELETE /questions/:id
-
POST /questions/:id/answers
-
DELETE /questions/:id/answers/:id
-
DELETE /questions/:id/comments/:id
-
POST /questions/:id/comments
/users
GET /users