Skip to content

Commit 367ac9c

Browse files
committed
refactor#132 : API 프록시 코드리뷰 적용
1 parent 1a998ce commit 367ac9c

File tree

1 file changed

+4
-2
lines changed
  • core/data/src/main/java/com/yapp/core/data/remote/di

1 file changed

+4
-2
lines changed

core/data/src/main/java/com/yapp/core/data/remote/di/ApiModule.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ internal object ApiModule {
5252
@Singleton
5353
@Provides
5454
fun provideAttendanceApi(@AuthRetrofit retrofit: Retrofit): AttendanceApi {
55-
return retrofit.create()
55+
return retrofit.create(AttendanceApi::class.java)
5656
}
5757

5858
@Singleton
5959
@Provides
60-
fun providesSessionsApi(@AuthRetrofit retrofit: Retrofit) = retrofit.create<SessionApi>()
60+
fun providesSessionsApi(@AuthRetrofit retrofit: Retrofit): SessionApi {
61+
return retrofit.create(SessionApi::class.java)
62+
}
6163
}

0 commit comments

Comments
 (0)