mirror of
https://github.com/gotson/komga.git
synced 2025-12-09 18:16:55 +01:00
refactor: use spring's webclient.builder
This commit is contained in:
parent
feb807b0ec
commit
9fde145860
1 changed files with 2 additions and 1 deletions
|
|
@ -25,8 +25,9 @@ private const val WEBSITE = "https://komga.org"
|
|||
@RequestMapping("api/v1/announcements", produces = [MediaType.APPLICATION_JSON_VALUE])
|
||||
class AnnouncementController(
|
||||
private val userRepository: KomgaUserRepository,
|
||||
webClientBuilder: WebClient.Builder,
|
||||
) {
|
||||
private val webClient = WebClient.create("$WEBSITE/blog/feed.json")
|
||||
private val webClient = webClientBuilder.baseUrl("$WEBSITE/blog/feed.json").build()
|
||||
|
||||
private val cache =
|
||||
Caffeine
|
||||
|
|
|
|||
Loading…
Reference in a new issue