Skip to content

Instantly share code, notes, and snippets.

@illuzor

illuzor/api.kt Secret

Created September 14, 2018 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save illuzor/c818a388ee71e36394c5fefe7113a978 to your computer and use it in GitHub Desktop.
Save illuzor/c818a388ee71e36394c5fefe7113a978 to your computer and use it in GitHub Desktop.
package com.illuzor.lesson.wallpapers.api
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
const val BASE_URL = "https://wallpapers.illuzor.com/"
val api: WallpapersApi =
Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build()
.create(WallpapersApi::class.java)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment