Skip to content

Commit

Permalink
Merge pull request #214 from Kernel360/setting/swagger-url
Browse files Browse the repository at this point in the history
Setting : 스웨거 경로 수정
  • Loading branch information
jeongns2611 authored Feb 10, 2025
2 parents ff04b42 + d49a6b6 commit 73e8ece
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Admin/src/main/java/com/seveneleven/AdminApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@EnableJpaAuditing
@OpenAPIDefinition(
servers = {
@Server(description = "local Admin", url = "http://localhost/admin"),
@Server(description = "local Port Admin", url = "http://localhost:8443/admin"),
@Server(description = "server Admin", url = "https://api.devlens.work/admin")
}
)
Expand Down
4 changes: 3 additions & 1 deletion Common/src/main/java/com/seveneleven/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ public void addCorsMappings(CorsRegistry registry) {
"https://api.devlens.work",
"https://local.devlens.work",
"http://localhost/admin",
"http://localhost/main")
"http://localhost/main",
"http://localhost:8443/admin",
"http://localhost:8444/main")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true);
Expand Down
2 changes: 1 addition & 1 deletion Main/src/main/java/com/seveneleven/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@EnableJpaAuditing
@OpenAPIDefinition(
servers = {
@Server(description = "local Main", url = "http://localhost/main"),
@Server(description = "local Port Main", url = "http://localhost:8444/main"),
@Server(description = "server Main", url = "https://api.devlens.work/main")
}
)
Expand Down

0 comments on commit 73e8ece

Please sign in to comment.