mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-07 10:00:31 +05:30
14 lines
392 B
Kotlin
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)
|
|
}
|
|
} |