Skip to content

Commit

Permalink
swagger https 요청 불가 현상 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkang1517 committed Feb 19, 2024
1 parent b12c368 commit 7b8406f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/mara/server/config/swagger/SwaggerConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import io.swagger.v3.oas.annotations.security.SecuritySchemes
import io.swagger.v3.oas.models.OpenAPI
import io.swagger.v3.oas.models.info.Info
import io.swagger.v3.oas.models.security.SecurityRequirement
import io.swagger.v3.oas.models.servers.Server
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

Expand All @@ -32,6 +33,7 @@ class SwaggerConfig {
@Bean
fun openAPI(): OpenAPI {
return OpenAPI()
.addServersItem(Server().url("/"))
.addSecurityItem(SecurityRequirement().addList("jwtAuth"))
.addSecurityItem(SecurityRequirement().addList("Refresh-Token"))
.info(apiInfo())
Expand Down

0 comments on commit 7b8406f

Please sign in to comment.