mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
feat: api文档
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ public class WhitelistUtils {
|
||||
"/dekey",
|
||||
"/index.html",
|
||||
"/model",
|
||||
"/deApi",
|
||||
"/demo.html",
|
||||
"/swagger-resources",
|
||||
"/doc.html",
|
||||
|
||||
Reference in New Issue
Block a user