Skip to content

Commit 3d0fce2

Browse files
committed
Обновил УРЛ сервиса
1 parent be1537c commit 3d0fce2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/otus/homework/coroutines/CatsService.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import retrofit2.http.GET
55

66
interface CatsService {
77

8-
@GET("random?animal_type=cat")
8+
@GET("fact")
99
fun getCatFact() : Call<Fact>
1010
}

app/src/main/java/otus/homework/coroutines/DiContainer.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class DiContainer {
77

88
private val retrofit by lazy {
99
Retrofit.Builder()
10-
.baseUrl("https://cat-fact.herokuapp.com/facts/")
10+
.baseUrl("https://catfact.ninja/")
1111
.addConverterFactory(GsonConverterFactory.create())
1212
.build()
1313
}

0 commit comments

Comments
 (0)