Frontend Routes - Marshall-Diffey/Gameora-Sojourner GitHub Wiki
User-facing routes
/login
Log in page
This page displays a log in form
- GET /login
- POST /login
/signup
This page displays a signup form.
Sign up page
- GET /signup
- POST /signup
/
This page displays the ten most recent Game-Ora questions and their comments, as well as a navigation bar with a list of question topics and a navigation bar with login/signup or logout buttons. Each Game-Ora question has an update and delete button if it belongs to the currently logged in user. Logged in users can comment on the Game-Ora questions on this page.
- GET /
- DELETE /questions/:id
- PUT /questions/:id
- GET /topics/:id
- GET /questions/:id
/question-new
This page displays a form with which a logged in user can craft a new question, as well as a navigation bar with topics, home, and login/signup or logout buttons.
- GET /
- POST /questions
- GET /topics/:id
/questions/:id
This page displays individual Questions with associated comments as well as a navigation bar with topics, home, and login/signup or logout buttons. If the logged in user owns the question, this page also displays an update and delete button. Logged in users can post comments. The logged in owners of those comments can update or delete them.
- GET /
- DELETE /questions/:id
- POST /questions/:id/comments
- DELETE /comments/:id
- PUT /comments/:id
- GET /topics/:id