Skip to content

Instantly share code, notes, and snippets.

@himchanyoon9212
Created March 16, 2023 22:36
Show Gist options
  • Save himchanyoon9212/d9564ee245d1173ae8d1de1b324f73b9 to your computer and use it in GitHub Desktop.
Save himchanyoon9212/d9564ee245d1173ae8d1de1b324f73b9 to your computer and use it in GitHub Desktop.
object RetrofitInstance {
val BASE_URL = "https://api.github.com/"
val client = Retrofit
.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build()
fun getInstance() : Retrofit {
return client
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment