- for each route type, create one
app.get
handler. - in the response to the request, send back only HTML.
- format the HTML to output a nicely formatted page with each pokemon attribute.
- use a
ul
element for each attribute in the pokemon that has more than one thing: i.e.,type
. - create a page at the root route
/
that displays links to each pokemon's page. (hint: the html is created in a loop)
- if the user requests a pokemon or something that doesn't exist, redirect them back to the root URL.
- add CSS (right now, this has to be in a style tag in the HTML you send back)
Create a route for each of these: spawn_chance
, avg_spawns
that will show each pokemon that is more or less than the given number. Example: /search/spawn_chance?amount=1&compare=less
will send back a formatted HTML page with a list of every pokemon with a spawn change less than 1. Example 2: /search/avg_spawn?amount=0.8&compare=more
Create the same routes for: height
, weight
and spawn_time
.