Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
slovrid committed Oct 15, 2023
1 parent 6df75fa commit 462deab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public CustomWebMvcConfigurer(final FnrUsageLoggerInterceptor fnrUsageLoggerInte

@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(fnrUsageLoggerInterceptor).addPathPatterns("/api/person", "/api/person/**", "/api/v2/person", "/api/v2/person/**");
// TODO: Legg til addPathPatterns nå ferdig med testing
registry.addInterceptor(fnrUsageLoggerInterceptor);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public class FnrUsageLoggerInterceptor implements HandlerInterceptor {

@Override
public boolean preHandle(@NotNull HttpServletRequest request, @NotNull HttpServletResponse response, @NotNull Object handler) {
// TODO: Fjern denne linjen - kun for testing
log.debug("Inside preHandle");

String requestURI = request.getRequestURI();
String queryString = request.getQueryString();
String fnrPattern = "(^|\\W)\\d{11}(?=$|\\W)";
Expand Down

0 comments on commit 462deab

Please sign in to comment.