Skip to content

Instantly share code, notes, and snippets.

@illuzor illuzor/api.kt Secret
Created Sep 14, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.