We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be1537c commit 3d0fce2Copy full SHA for 3d0fce2
app/src/main/java/otus/homework/coroutines/CatsService.kt
@@ -5,6 +5,6 @@ import retrofit2.http.GET
5
6
interface CatsService {
7
8
- @GET("random?animal_type=cat")
+ @GET("fact")
9
fun getCatFact() : Call<Fact>
10
}
app/src/main/java/otus/homework/coroutines/DiContainer.kt
@@ -7,7 +7,7 @@ class DiContainer {
private val retrofit by lazy {
Retrofit.Builder()
- .baseUrl("https://cat-fact.herokuapp.com/facts/")
+ .baseUrl("https://catfact.ninja/")
11
.addConverterFactory(GsonConverterFactory.create())
12
.build()
13
0 commit comments