LibreTube/app/src/main/java/com/github/libretube/RetrofitInstance.kt

14 lines
392 B
Kotlin
Raw Normal View History

2022-02-01 21:22:06 +05:30
package com.github.libretube
2021-12-18 16:34:14 +05:30
import retrofit2.Retrofit
import retrofit2.converter.jackson.JacksonConverterFactory
object RetrofitInstance {
val api: PipedApi by lazy {
Retrofit.Builder()
2022-02-02 23:58:24 +05:30
.baseUrl("https://pipedapi.kavin.rocks/")
2021-12-18 16:34:14 +05:30
.addConverterFactory(JacksonConverterFactory.create())
.build()
.create(PipedApi::class.java)
}
}