Skip to content

Commit

Permalink
[Chore]: 스웨거 서버 주소 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
bayy1216 committed Jul 2, 2024
1 parent 95db200 commit d29e2d6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.haedal.zzansuni.global.api;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.servers.Server;
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
Expand All @@ -8,6 +10,12 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@OpenAPIDefinition(
servers = {
@Server(url = "https://api.reditus.site",description = "Prod Server"),
@Server(url = "http://localhost:8080", description = "localhost"),
}
)
@Configuration
public class SwaggerConfig {
private static final String BEARER_KEY = "bearer-key";
Expand Down

0 comments on commit d29e2d6

Please sign in to comment.