Skip to content

Frontend Routes

kdng edited this page Mar 14, 2022 · 17 revisions

Navbar

  • A navbar is displayed across all pages of the app, and contains links to:
    • GET /
    • GET /login
    • GET /signup
    • GET /pokemons
    • GET /catchlists
    • GET /catchlists/caught
    • GET /catchlists/currently-hunting
    • GET /catchlists/plan-to-catch
    • GET /pokemons/:pokemonId/reviews

/signup

  • This route will get the trainer to the sign up form
    • Routes to page
      • GET /signup
      • POST /signup

/login

  • This route will get the trainer to the log in form
    • Routes to page
      • GET /login
      • POST /login

/pokemons

  • This page will display all pokemons in the pokemon list
    • Route to page
      • GET /pokemons

/pokemons/:id

  • This page will get the trainer to a specific pokemon when clicked
    • Route to specific pokemon
      • GET /pokemons/:id

/catchlists/name

  • This route will get the trainer to their specific catchlist when logged in
    • Routes to specific catchlist
      • GET /catchlists/caught
      • GET /catchlists/currently-hunting
      • GET /catchlists/plan-to-catch

/pokemons/:pokemonId/reviews

  • This route will get the trainer to the reviews of every pokemon on the pokemon list
    • Routes to get/post/update/delete pokemon reviews:
      • GET /pokemons/:pokemonId/reviews/:reviewsId
      • POST /pokemons/:pokemonId/reviews/
      • PUT /pokemons/:pokemonId/reviews/:reviewsId
      • DELETE /pokemons/:pokemonId/reviews/:reviewsId

Clone this wiki locally