mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-05 17:10:29 +05:30
14 lines
397 B
Kotlin
14 lines
397 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://piped-api.alefvanoon.xyz/")
|
||
|
.addConverterFactory(JacksonConverterFactory.create())
|
||
|
.build()
|
||
|
.create(PipedApi::class.java)
|
||
|
}
|
||
|
}
|