|
@@ -52,13 +52,13 @@ public class Config extends WebMvcConfigurerAdapter{
|
|
|
|
|
|
@Override
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
- registry.addInterceptor(authInterceptor())
|
|
|
- .addPathPatterns("/audio/search")
|
|
|
- .excludePathPatterns("/device/**");
|
|
|
+// registry.addInterceptor(authInterceptor())
|
|
|
+// .addPathPatterns("/audio/search")
|
|
|
+// .excludePathPatterns("/device/**");
|
|
|
|
|
|
- registry.addInterceptor(adminInterceptor())
|
|
|
- .addPathPatterns("/**")
|
|
|
- .excludePathPatterns("/device/**", "/admin/login", "/audio/search");
|
|
|
+// registry.addInterceptor(adminInterceptor())
|
|
|
+// .addPathPatterns("/**")
|
|
|
+// .excludePathPatterns("/device/**", "/admin/login", "/audio/search");
|
|
|
|
|
|
registry.addInterceptor(allowOriginIntercepter())
|
|
|
.addPathPatterns("/**");
|