Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
m4salah committed Dec 8, 2023
1 parent 007c31e commit e83d828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/day8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl PokeWeight {
}

async fn poke_weight(Path(pokedex): Path<u32>) -> impl IntoResponse {
let poke_weight = reqwest::get(format!("https://pokeapi.co/api/v/pokemon/{pokedex}"))
let poke_weight = reqwest::get(format!("https://pokeapi.co/api/v2/pokemon/{pokedex}"))
.await
.unwrap()
.json::<PokeWeight>()
Expand Down

0 comments on commit e83d828

Please sign in to comment.