Skip to content

Commit

Permalink
[FEAT] #8-apply profileService
Browse files Browse the repository at this point in the history
  • Loading branch information
librarywon committed May 26, 2023
1 parent 96c3dd4 commit b4c5dcb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/com/sopt/carrot/data/ApiPool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ package com.sopt.carrot.data

import com.sopt.carrot.BuildConfig.API_SERVER_URL
import com.sopt.carrot.data.page.PageService
import com.sopt.carrot.data.profile.ProfileService
import com.sopt.carrot.data.review.ReviewService
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.create
import java.util.concurrent.TimeUnit

object ApiPool {
val pageService = RetrofitPool.toApiServer.create(PageService::class.java)
val reviewService = RetrofitPool.toApiServer.create<ReviewService>(ReviewService::class.java)
val reviewService = RetrofitPool.toApiServer.create(ReviewService::class.java)
val profileService = RetrofitPool.toApiServer.create(ProfileService::class.java)
}

object RetrofitPool {
Expand Down

0 comments on commit b4c5dcb

Please sign in to comment.