16 lines
455 B
Kotlin

package ru.vendetti.bitcoin_summarizer
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object RetrofitClient {
private const val BASE_URL = "https://api.alternative.me/"
val apiService: CryptoApiService by lazy {
Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build()
.create(CryptoApiService::class.java)
}
}