Frontend Routes - nicopierson/hotpotato GitHub Wiki

User-facing routes

/hotpotato and /

Root Page / Feed Page

For users that are not logged in, this page shows initial root page for all global recipes recommended feed. Along with a sign-up/login in the navbar For logged in users, This page shows their homepage feed. Along with a create creation button and logout in the navbar

/register

Sign up page

This page displays a sign-up form.

  • GET /register

  • POST /register

/demo

Demo page

This page displays the dashboard of a guest user for the app.

  • GET /demo

/login

Log in Modal

This page displays a log-in modal.

  • POST /login

/recipes

all users can view recipes and Logged in users can create recipes

This page will display the logged-in user's account page.

  • GET /recipe/:id
  • POST / recipe /

/profile

Logged in user profile page

This page will display the logged-in user's account page.

  • GET /profile/:id