Skip to content

Commit

Permalink
๐Ÿ› Server URL ์„ค์ •
Browse files Browse the repository at this point in the history
local์—์„œ๋Š” http, aws์—์„œ๋Š” https๋กœ server url ์„ค์ •๋จ
  • Loading branch information
min-0 committed Sep 9, 2024
1 parent ffb4b45 commit a56c8ee
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 a56c8ee

Please sign in to comment.