|
@@ -45,12 +45,12 @@ public class Config extends WebMvcConfigurerAdapter{
|
|
@Override
|
|
@Override
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
registry.addInterceptor(authInterceptor())
|
|
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())
|
|
registry.addInterceptor(adminInterceptor())
|
|
.addPathPatterns("/**", "/device/update", "/device/delete")
|
|
.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())
|
|
registry.addInterceptor(ignoreOptionsInterceptor())
|
|
.addPathPatterns("/**");
|
|
.addPathPatterns("/**");
|