Skip to content

Commit

Permalink
Merge pull request #121 from joreilly/update_endpoint
Browse files Browse the repository at this point in the history
update endpoint
  • Loading branch information
joreilly authored Nov 27, 2024
2 parents 9f8dc3d + 2162712 commit 4326251
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 4326251

Please sign in to comment.