diff --git a/src/main/kotlin/mara/server/config/swagger/SwaggerConfig.kt b/src/main/kotlin/mara/server/config/swagger/SwaggerConfig.kt index 7f2c412..545e91e 100644 --- a/src/main/kotlin/mara/server/config/swagger/SwaggerConfig.kt +++ b/src/main/kotlin/mara/server/config/swagger/SwaggerConfig.kt @@ -8,6 +8,7 @@ import io.swagger.v3.oas.annotations.security.SecuritySchemes import io.swagger.v3.oas.models.OpenAPI import io.swagger.v3.oas.models.info.Info import io.swagger.v3.oas.models.security.SecurityRequirement +import io.swagger.v3.oas.models.servers.Server import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration @@ -32,6 +33,7 @@ class SwaggerConfig { @Bean fun openAPI(): OpenAPI { return OpenAPI() + .addServersItem(Server().url("/")) .addSecurityItem(SecurityRequirement().addList("jwtAuth")) .addSecurityItem(SecurityRequirement().addList("Refresh-Token")) .info(apiInfo())