Frontend Routes - ZaviarBrown/spaceXchange GitHub Wiki

Frontend Routes

This web app contains user-facing routes that a user can access and interact with.

/

  • This page will show a login/signup and give a brief image/text driven explanation of what our website is

  • GET /

/login

  • This page displays a log in form.

  • GET /login

  • POST /login

/signup

  • An individual may create a new account. This page will display a signup form.

  • GET /signup

  • POST /signup

/dashboard

  • This page will display a user's portfolio value, shares owned per asset, all broken down over a selected timeline.

    • GET /dashboard

/planets/

  • This page will display a table of all planets with their current prices.

  • GET /planets

/planets/:id

  • This page will display a page with the planet's current price, historical price, description, and details. From this page, a logged in user will also be able to buy/sell shares of this planet's currency.

  • GET /planets/:id

  • POST api/transactions

  • PATCH api/assets/:id