WDI-SEA / project-2-issues

0 stars 0 forks source link

Trying to get multiple results to fill an index page #27

Closed LindZCoding closed 2 years ago

LindZCoding commented 2 years ago

    let base_url = "https://api.jikan.moe/v3/anime"

    axios.get("https://api.jikan.moe/v3/anime/")
    .then(res => console.log(res.data))
    // .then(data => console.log(data))
    .catch(err => console.error)
    res.render('home')
})```
tkolsrud commented 2 years ago

Have you tried throwing in one of the broader parameters, like "movie" ?

TaylorDarneille commented 2 years ago

Your res.render() needs to be inside your .then

LindZCoding commented 2 years ago

Have you tried throwing in one of the broader parameters, like "movie" ?

I decided I think it will be better for the user to do a search on an anime or genre they are looking for since there is way too many to show