mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
Merge pull request #6748 from dataease/pr@dev-v2@feat_api_doc
feat: api文档
This commit is contained in:
commit
fe77de49ca
@ -23,6 +23,6 @@ public class CorsConfig implements WebMvcConfigurer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configurePathMatch(PathMatchConfigurer configurer) {
|
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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ public class WhitelistUtils {
|
|||||||
"/dekey",
|
"/dekey",
|
||||||
"/index.html",
|
"/index.html",
|
||||||
"/model",
|
"/model",
|
||||||
|
"/deApi",
|
||||||
"/demo.html",
|
"/demo.html",
|
||||||
"/swagger-resources",
|
"/swagger-resources",
|
||||||
"/doc.html",
|
"/doc.html",
|
||||||
|
Loading…
Reference in New Issue
Block a user