Skip to content

Commit

Permalink
rename client bean function
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj committed Nov 30, 2023
1 parent 5d31b15 commit 58f0efa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import uk.gov.justice.digital.hmpps.integrations.prison.PrisonApiClient
class RestClientConfig(private val hmppsAuthClient: RestClient) {

@Bean
fun courtCaseClient(@Value("\${integrations.prison-api.url}") prisonApiBaseUrl: String) =
fun prisonApiClient(@Value("\${integrations.prison-api.url}") prisonApiBaseUrl: String) =
createClient<PrisonApiClient>(
hmppsAuthClient.mutate()
.baseUrl("$prisonApiBaseUrl/api/bookings")
Expand Down

0 comments on commit 58f0efa

Please sign in to comment.