LibreTube/app/src/main/java/xyz/btcland/libretube/RetrofitInstance.kt

14 lines
397 B
Kotlin
Raw Normal View History

2021-12-18 16:34:14 +05:30
package xyz.btcland.libretube
import retrofit2.Retrofit
import retrofit2.converter.jackson.JacksonConverterFactory
object RetrofitInstance {
val api: PipedApi by lazy {
Retrofit.Builder()
.baseUrl("https://piped-api.alefvanoon.xyz/")
.addConverterFactory(JacksonConverterFactory.create())
.build()
.create(PipedApi::class.java)
}
}