Skip to content

Commit

Permalink
Merge pull request #46 from dnd-side-project/bug/#45
Browse files Browse the repository at this point in the history
#45 Server URL 설정
  • Loading branch information
min-0 authored Sep 9, 2024
2 parents ffb4b45 + a56c8ee commit 5f1549d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/dnd/dndtravel/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.security.SecurityRequirement;
import io.swagger.v3.oas.models.security.SecurityScheme;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

Expand All @@ -18,6 +19,7 @@ public OpenAPI openAPI() {
.title("MAPDDANG API")
.description("맵땅 앱 관련 API")
.version("1.0.0"))
.addServersItem(new Server().url("/").description("Generated Default Server URL")) //local에서는 http, aws에서는 https로 server url 설정됨
.addSecurityItem(new SecurityRequirement()
.addList("Access Token")
.addList("Refresh Token"))
Expand Down

0 comments on commit 5f1549d

Please sign in to comment.