Commit 75d4cee1 by gdj

放行 OSS 文件浏览接口

parent 1b7145b9
......@@ -24,6 +24,12 @@ public class GlobalMVCConfigurer implements WebMvcConfigurer {
@Value("${url.manage.version}")
private String manageVersion;
@Value("${url.media.prefix}")
private String mediaPrefix;
@Value("${url.media.version}")
private String mediaVersion;
@Override
public void addInterceptors(InterceptorRegistry registry) {
......@@ -47,6 +53,8 @@ public class GlobalMVCConfigurer implements WebMvcConfigurer {
excludePaths.add("/" + managePrefix + manageVersion + "/aiInfo/add");
excludePaths.add("/" + managePrefix + manageVersion + "/aiInfo/update");
excludePaths.add("/" + managePrefix + manageVersion + "/aiInfo/addFromTopic");
// 放行 OSS 文件浏览接口
excludePaths.add("/" + mediaPrefix + mediaVersion + "/oss/**/files");
// Intercept for all request interfaces.
registry.addInterceptor(authInterceptor).addPathPatterns("/**").excludePathPatterns(excludePaths);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment