I’m trying to intercept requests from a Stack especific using API Intercetor keep bellow configuration:
api.interceptor.config
“requestInterceptors”: [
{
“type”: “http”,
“paths”: ["/v2-beta/projects/1221222/hosts/3h1222"],
“endpoint”: “http://localhost:8080”,
“methods”: [“post”, “get”, “put”, “delete”],
“secretToken”: “pqrs”
}
]
Java code - Spring Boot:
@Configuration
public class ConfigInterceptor implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new LogInterceptor());
.addPathPatterns("/v2-beta/projects/1221222/hosts/3h1222")
.addPathPatterns(“http://test.apptest.com.br”)
}
}
But, in my interceptor, no success!
Can i help?