소스 검색

修改拦截

wangys 5 년 전
부모
커밋
2c5f1a7ae3
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/main/java/cn/efunbox/audio/config/Config.java

+ 3 - 3
src/main/java/cn/efunbox/audio/config/Config.java

@@ -45,12 +45,12 @@ public class Config extends WebMvcConfigurerAdapter{
     @Override
     public void addInterceptors(InterceptorRegistry registry) {
         registry.addInterceptor(authInterceptor())
-                .addPathPatterns("/audio/search","/audio/searchList","/audio/info/{audioId}", "/device/findAlbum");
-//                .excludePathPatterns("/device/**", "/error","/audio/*");
+                .addPathPatterns("/audio/search","/audio/searchList","/audio/info/{audioId}")
+                .excludePathPatterns("/device/**", "/error","/audio/*");
 
         registry.addInterceptor(adminInterceptor())
                 .addPathPatterns("/**", "/device/update", "/device/delete")
-                .excludePathPatterns("/device/**","/audio/info/{audioId}", "/error", "/admin/login", "/audio/search","/file/**","/audio/searchList","/statistics","/test");
+                .excludePathPatterns("/device/**","/audio/info/{audioId}", "/error", "/admin/login", "/audio/search","/file/**","/audio/searchList","/statistics");
 
         registry.addInterceptor(ignoreOptionsInterceptor())
                 .addPathPatterns("/**");