Skip to content

Commit 2ef94f1

Browse files
committed
refactor: Reorder main method in ArbeidssoekerregisteretProxyApplicationStarter for clarity #deploy-proxy-arbeidssoekerregisteret
1 parent 785277e commit 2ef94f1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

proxies/arbeidssoekerregistering-proxy/src/main/java/no/nav/testnav/proxies/arbeidssoekerregisteretproxy/ArbeidssoekerregisteretProxyApplicationStarter.java

+6-5
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,24 @@
2222
@SpringBootApplication
2323
public class ArbeidssoekerregisteretProxyApplicationStarter {
2424

25-
public static void main(String[] args) {
26-
SpringApplication.run(ArbeidssoekerregisteretProxyApplicationStarter.class, args);
27-
}
28-
2925
@Bean
3026
public RouteLocator customRouteLocator(RouteLocatorBuilder builder,
3127
AzureTrygdeetatenTokenService tokenService,
3228
Consumers consumers) {
3329

3430
return builder.routes()
3531
.route(spec -> spec.path("/**")
36-
.filters(filterSpec -> filterSpec.filters(AddAuthenticationRequestGatewayFilterFactory.bearerAuthenticationHeaderFilter(
32+
.filters(filterSpec -> filterSpec.filters(
33+
AddAuthenticationRequestGatewayFilterFactory.bearerAuthenticationHeaderFilter(
3734
() -> tokenService.exchange(consumers.getArbeidssoekerregisteret())
3835
.map(AccessToken::getTokenValue)
3936
)))
4037
.uri(consumers.getArbeidssoekerregisteret().getUrl())
4138
)
4239
.build();
4340
}
41+
42+
public static void main(String[] args) {
43+
SpringApplication.run(ArbeidssoekerregisteretProxyApplicationStarter.class, args);
44+
}
4445
}

0 commit comments

Comments
 (0)