Skip to content

Commit 55ee01b

Browse files
authored
Add method to retrieve server base URL
1 parent a6fcf0f commit 55ee01b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/OpenAPIService.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,14 @@ public SecurityService getSecurityParser() {
808808
return securityParser;
809809
}
810810

811+
/**
812+
* Gets server base URL
813+
*
814+
* @return the server base URL
815+
public String getServerBaseUrl() {
816+
return serverBaseUrl;
817+
}
818+
811819
@Override
812820
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
813821
this.context = applicationContext;

0 commit comments

Comments
 (0)