Frontend Routes - lucianjones/Team-Tianwen 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.
    • GET /

/profile

  • This displays a page where logged in users can view and edit their profile.
    • GET /profile
    • POST /profile
    • PATCH /profile
    • DELETE /profile

/questions/:id

  • This page is where logged in users can post updates and delete questions without causing a refresh.
    • GET /questions/:id
    • DELETE /questions/:id
    • PATCH /questions/:id

/questions/new

  • This page displays a form where a logged in user can post a new question.
    • POST /questions