Frontend Routes - vernfongchao/Catoura GitHub Wiki
User-facing routes
Frontend Routes:
/
Landing Page This page displays a landing page to sign up or login If a user is logged in it will display the home page if not they will be prompted to login
/login
Login page This page displays a login form
- GET /login
- POST /login
/signup
Sign-up Page This page displays a sign-up form
- GET /signup
- POST /signup
/questions
Question Collection page this page displays all the questions a user have made.
- GET /questions
- GET /questions/:id
- GET /questions/new
- GET /topics/:id
- GET /questions/myquestions
- GET /questions/:id/edit
/questions/new
Question Form Page A page that displays a form to create a new question
- GET /questions/new
- POST /questions
/questions/:id
This is a question's detail page.
- GET /questions/:id
- PUT /questions/:id
- DELETE /questions/:id
API routes:
- POST /comments
- DELETE /comments/:id
/topics
This page displays a list of topics
- GET /topics
- GET /topics/:id
- DELETE /topics/:id
/topics/new
Topic form page This will be a page to create a new topic
- GET /topics/new
- POST /topics
/topics/:id
This page displays a list of questions associated to a topic
- GET /topics/:id
- GET /questions/:id