diff --git a/src/main/java/hello/Application.java b/src/main/java/hello/Application.java index bb9f25b..c19ee11 100644 --- a/src/main/java/hello/Application.java +++ b/src/main/java/hello/Application.java @@ -34,9 +34,9 @@ public class Application extends WebMvcConfigurerAdapter implements CommandLineR public void addInterceptors(InterceptorRegistry registry) { //TODO INTERCEPTORS DO NOT FIRE ON PATHS // TODO only /** works -// registry.addInterceptor(new RequestInterceptor("GIS_CRUD")).addPathPatterns("/**"); + registry.addInterceptor(new RequestInterceptor("GIS_CRUD")).addPathPatterns("/gis/*/*", "/gis/*"); // registry.addInterceptor(new RequestInterceptor("OBJECTS_CRUD")).addPathPatterns("/objects**"); -// registry.addInterceptor(new RequestInterceptor("SENSORS_CRUD")).addPathPatterns("/sensors**"); + registry.addInterceptor(new RequestInterceptor("SENSORS_CRUD")).addPathPatterns("/sensors*/*", "/sensors/*"); // registry.addInterceptor(new RequestInterceptor("REQUIREMENTS_CRUD")).addPathPatterns("/requirements**"); // registry.addInterceptor(new RequestInterceptor("RULES_CRUD")).addPathPatterns("/rules**"); // registry.addInterceptor(new RequestInterceptor("PROFILES_CRUD")).addPathPatterns("/profiles**");