Skip to content

Commit 93f13ea

Browse files
committed
Added missing criteria for not forwarding /internal endpoints.
1 parent f41bbb8 commit 93f13ea

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

proxies/histark-proxy/src/main/java/no/nav/testnav/proxies/histarkproxy/HistarkProxyApplicationStarter.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ public static void main(String[] args) {
2525

2626
@Bean
2727
public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
28-
return builder.routes()
29-
.route(spec -> spec.path("/**").uri("https://histarkimport.dev.intern.nav.no/"))
28+
return builder
29+
.routes()
30+
.route(spec -> spec
31+
.path("/**")
32+
.and()
33+
.not(not -> not.path("/internal/**"))
34+
.uri("https://histarkimport.dev.intern.nav.no/"))
3035
.build();
3136
}
3237

0 commit comments

Comments
 (0)