in this instance: the API is created with:
app.use('/pokemon)
that creates the first endpoint.
const response = await fetch(http://localhost:5000/pokemon?query={books});
I mistakenly queried the books to this above path. Thats the point of HTTP. The default way of doing things brings in all the data.
query={books}{name}
you need the endpoints from books to come back. you cant return undestructured data if thats how you would explain it.
That is the whole point of defining them on the client
in this instance: the API is created with: app.use('/pokemon)
that creates the first endpoint.
const response = await fetch(
http://localhost:5000/pokemon?query={books}
); I mistakenly queried the books to this above path. Thats the point of HTTP. The default way of doing things brings in all the data.query={books}{name} you need the endpoints from books to come back. you cant return undestructured data if thats how you would explain it. That is the whole point of defining them on the client