Skip to content

Commit

Permalink
HOTFIX: swagger에 도메인 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yechan-kim committed Aug 1, 2024
1 parent da15def commit 54fe33b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@OpenAPIDefinition(info = @Info(
title = "Commitato API",
description = "커밋테이토 API 문서",
Expand All @@ -35,7 +37,7 @@ public OpenAPI openApi() {
server.setUrl("/");

return new OpenAPI()
.addServersItem(new Server().url("/"))
.servers(List.of(apiServer, server))
.addSecurityItem(securityRequirement)
.components(components);
}
Expand Down

0 comments on commit 54fe33b

Please sign in to comment.