Skip to content

Commit

Permalink
fix(SwaggerConfig) : 로컬에서도 스웨거 사용가능하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Due-IT committed Nov 30, 2024
1 parent fc1e582 commit bdbf09b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@ class SwaggerConfig {
.scheme("bearer")
.bearerFormat("JWT")
)

val server = Server()
server.url = "https://zepelown.site"

val localServer = Server()
localServer.url = "http://localhost:8080"

return OpenAPI()
.addServersItem(Server().url("https://zepelown.site"))
.servers(listOf(server, localServer))
.info(info)
.addSecurityItem(securityRequirement)
.components(components)
Expand Down

0 comments on commit bdbf09b

Please sign in to comment.