Skip to content

Frontend Routes

Daniel Upchurch edited this page Jan 25, 2021 · 2 revisions

User-facing routes

/login

Log In Page

API Routes Used

  • [POST /login]

/register

Registration page

API Routes Used

  • [POST /signup]

/

Authentication required to have all features, but generic splash page will display otherwise.

Search bar, user profile and icon, saved decks, create new deck and navigation bar.

API Routes Used

Logged in

  • [GET /api/savedDecks]

Logged out

  • [GET /api/decks]

Both

  • [GET /api/tags]

/gates

Authentication required to access

Displays all saved user decks. User can study from here or unsave any decks.

API Routes Used

  • [GET /api/savedDecks]
  • [DELETE /api/savedDecks/:id]

/gates/new

Authentication required to access

Create a new deck to study and add tags to the deck.

API Routes Used

  • [POST /api/decks]
  • [POST /api/savedDecks]

/gates/explore

Authentication required to save/unsave decks.

Browse other decks to study and save/unsave list to your own deck.

API Routes Used

  • [GET /api/decks]
  • [POST /api/savedDecks]
  • [DELETE /api/savedDecks/:id]

/gates/areas

Authentication required to save/unsave decks.

Browse other decks to study and save to your own list.

API Routes Used

  • [GET /api/tags]
  • [POST /api/savedDecks]
  • [DELETE /api/savedDecks/:id]

/dungeon/:id

Authentication required to save/unsave.

Page to display a specific deck that you can study. Can also save or unsave the deck from here.

API Routes Used

  • [GET /api/savedDecks]
  • [POST /api/savedDecks]
  • [DELETE /api/savedDecks/:id]

/dungeon/:id/combat

Authentication required to access.

Studying the deck itself. Questions are display from here on cards.

API Routes Used

  • [GET /api/questions]

/dungeon/:id/victory

Authentication required to access.

Page displayed when finishing the deck. Shows how well user did and allocates experience earned.

API Routes Used

  • [PUT /api/users]
Clone this wiki locally