LibreTube/app/src/main/java/xyz/btcland/libretube/RetrofitInstance.kt
2021-12-28 22:11:51 +04:00

14 lines
392 B
Kotlin

package xyz.btcland.libretube
import retrofit2.Retrofit
import retrofit2.converter.jackson.JacksonConverterFactory
object RetrofitInstance {
val api: PipedApi by lazy {
Retrofit.Builder()
.baseUrl("https://pipedapi.tokhmi.xyz/")
.addConverterFactory(JacksonConverterFactory.create())
.build()
.create(PipedApi::class.java)
}
}