fix(api): oauth2 providers endpoint should only expose get

This commit is contained in:
Gauthier Roebroeck 2025-02-12 11:42:57 +08:00
parent a70a3b24bb
commit c1fb307f9a

View file

@ -2,6 +2,7 @@ package org.gotson.komga.interfaces.api.rest
import org.springframework.http.MediaType
import org.springframework.security.oauth2.client.registration.InMemoryClientRegistrationRepository
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
@ -15,7 +16,7 @@ class OAuth2Controller(
OAuth2ClientDto(it.clientName, it.registrationId)
} ?: emptyList()
@RequestMapping("providers")
@GetMapping("providers")
fun getProviders() = registrationIds
}