Skip to content

Commit

Permalink
docs: add swagger default domain
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdjww committed May 17, 2024
1 parent 9781dd1 commit 6fa58ac
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.servers.Server;

@OpenAPIDefinition(
servers = {
@Server(url = "https://cogo.run", description = "Production server"),
@Server(url = "http://localhost:8080", description = "Local development server")
}
)
@SpringBootApplication
public class CoffeeChatApplication {

Expand Down

0 comments on commit 6fa58ac

Please sign in to comment.