Skip to content

Commit

Permalink
update endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
joreilly committed Nov 27, 2024
1 parent 9f8dc3d commit 2162712
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ data class EmissionInfo(

class ClimateTraceApi(
private val client: HttpClient,
private val baseUrl: String = "https://api.climatetrace.org/v4",
private val baseUrl: String = "https://api.climatetrace.org/v6",
) {
suspend fun fetchContinents() = client.get("$baseUrl/definitions/continents").body<List<String>>()
suspend fun fetchCountries() = client.get("$baseUrl/definitions/countries").body<List<Country>>()
Expand Down

0 comments on commit 2162712

Please sign in to comment.