Skip to content

Commit

Permalink
Fix: #232 - Added slash logic in Individual APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
josmilan authored and georgepadayatti committed Nov 15, 2023
1 parent eb3172e commit 15a65ce
Showing 1 changed file with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ object PrivacyDashboard {
val apiService: BBConsentAPIServices = BBConsentAPIManager.getApi(
accessToken,
apiKey,
baseUrl
if (baseUrl?.last().toString() == "/")
baseUrl
else
"$baseUrl/"
)?.service!!

val individualApiRepository = IndividualApiRepository(apiService)
Expand All @@ -394,7 +397,10 @@ object PrivacyDashboard {
val apiService: BBConsentAPIServices = BBConsentAPIManager.getApi(
accessToken,
apiKey,
baseUrl
if (baseUrl?.last().toString() == "/")
baseUrl
else
"$baseUrl/"
)?.service!!

val individualApiRepository = IndividualApiRepository(apiService)
Expand All @@ -418,7 +424,10 @@ object PrivacyDashboard {
val apiService: BBConsentAPIServices = BBConsentAPIManager.getApi(
accessToken,
apiKey,
baseUrl
if (baseUrl?.last().toString() == "/")
baseUrl
else
"$baseUrl/"
)?.service!!

val individualApiRepository = IndividualApiRepository(apiService)
Expand All @@ -440,7 +449,10 @@ object PrivacyDashboard {
val apiService: BBConsentAPIServices = BBConsentAPIManager.getApi(
accessToken,
apiKey,
baseUrl
if (baseUrl?.last().toString() == "/")
baseUrl
else
"$baseUrl/"
)?.service!!

val individualApiRepository = IndividualApiRepository(apiService)
Expand Down

0 comments on commit 15a65ce

Please sign in to comment.