From 2162712afb0b2947686ea4b736790fd35e61eb44 Mon Sep 17 00:00:00 2001 From: John O'Reilly Date: Wed, 27 Nov 2024 21:02:52 +0000 Subject: [PATCH] update endpoint --- .../dev/johnoreilly/climatetrace/remote/ClimateTraceApi.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/dev/johnoreilly/climatetrace/remote/ClimateTraceApi.kt b/composeApp/src/commonMain/kotlin/dev/johnoreilly/climatetrace/remote/ClimateTraceApi.kt index 9743f7e..b2fbedb 100644 --- a/composeApp/src/commonMain/kotlin/dev/johnoreilly/climatetrace/remote/ClimateTraceApi.kt +++ b/composeApp/src/commonMain/kotlin/dev/johnoreilly/climatetrace/remote/ClimateTraceApi.kt @@ -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>() suspend fun fetchCountries() = client.get("$baseUrl/definitions/countries").body>()