Skip to content

Commit

Permalink
Update ApiEndpoint.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
AzharRivaldi authored Apr 13, 2021
1 parent ff98a7d commit 247346c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ object ApiEndpoint {

const val BASE_URL = "https://newsapi.org/v2/"

@JvmStatic
fun getApiClient(): Retrofit {
return Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build()
}
}
}

0 comments on commit 247346c

Please sign in to comment.