mirror of
https://github.com/1Panel-dev/CordysCRM.git
synced 2026-05-14 11:22:10 +08:00
chore: Swagger module config
This commit is contained in:
@@ -71,4 +71,13 @@ public class OpenApiConfig {
|
||||
.build();
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnProperty(name = {"springdoc.swagger-ui.enabled", "springdoc.api-docs.enabled"}, havingValue = "true")
|
||||
public GroupedOpenApi xpackApi() {
|
||||
return GroupedOpenApi.builder()
|
||||
.group("xpack")
|
||||
.packagesToScan(prePackages + "xpack")
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user