Skip to content

Commit

Permalink
Specify servers as slash.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkomen committed Dec 24, 2020
1 parent ceef808 commit 410a9d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/tibiawiki/config/OpenAPIConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.info.BuildProperties;
import org.springframework.context.annotation.Bean;
Expand All @@ -17,6 +18,7 @@ public class OpenAPIConfiguration {
public OpenAPI customOpenAPI(@Autowired BuildProperties buildProperties) {
return new OpenAPI()
.components(new Components())
.addServersItem(new Server().url("/"))
.info(new Info()
.title("TibiaWikiApi")
.contact(new Contact().name("B. Komen"))
Expand Down

0 comments on commit 410a9d1

Please sign in to comment.