Merge pull request #6748 from dataease/pr@dev-v2@feat_api_doc

feat: api文档
This commit is contained in:
fit2cloud-chenyw 2023-11-17 17:20:49 +08:00 committed by GitHub
commit fe77de49ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,6 @@ public class CorsConfig implements WebMvcConfigurer {
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
configurer.addPathPrefix(AuthConstant.DE_API_PREFIX, c -> c.isAnnotationPresent(RestController.class));
configurer.addPathPrefix(AuthConstant.DE_API_PREFIX, c -> c.isAnnotationPresent(RestController.class) && c.getPackageName().startsWith("io.dataease"));
}
}

View File

@ -14,6 +14,7 @@ public class WhitelistUtils {
"/dekey",
"/index.html",
"/model",
"/deApi",
"/demo.html",
"/swagger-resources",
"/doc.html",