Skip to content

Frontend Routes

Nico G Pierson edited this page Aug 25, 2021 · 1 revision

User-facing routes

/yourcity and /

Root Page / Feed Page

For users that are not logged in, this page shows the splash page detailing the features. Along with a sign-up/login in the navbar.

For logged in users, this page shows the feed page. Along with a create city 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 feed of a guest user for the app.

  • GET /demo

/login

Log in

This page displays the login page

  • POST /login

/cities

all users can view the city feed page and Logged In users can create a city

This page will display all cities as a card

  • GET /cities/:id Display a single city page with insights associated to them
  • POST /cities Form to create a city

/profile

Logged in user profile page

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

  • GET /profile/:id View other profiles