mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
fix(api): oauth2 providers endpoint should only expose get
This commit is contained in:
parent
a70a3b24bb
commit
c1fb307f9a
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue