Skip to content

Commit 83282fb

Browse files
authored
200 check to / (#71)
1 parent ee31aec commit 83282fb

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/main/java/io/autoinvestor/configuration/SecurityConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class SecurityConfiguration {
1515
@Bean
1616
public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
1717
return http
18-
.securityMatcher(ServerWebExchangeMatchers.anyExchange())
18+
.securityMatcher(ServerWebExchangeMatchers.pathMatchers("/api/**"))
1919
.csrf(ServerHttpSecurity.CsrfSpec::disable)
2020
.authorizeExchange(authorizeExchangeSpec -> authorizeExchangeSpec
2121
.pathMatchers("/api/oauth2/**", "/api/login/**").permitAll()

src/main/resources/application.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ spring:
4040
filters:
4141
- SetStatus=200
4242

43-
- id: plain-text-response
44-
uri: "no://localhost"
45-
predicates:
46-
- Path=/api
47-
filters:
48-
- SetStatus=200
49-
5043
- id: oauth2-auth
5144
uri: http://localhost:8080
5245
predicates:

0 commit comments

Comments
 (0)