Fix typo in doc

This commit is contained in:
wonwoo 2021-03-04 14:41:56 +09:00 committed by Eleftheria Stein-Kousathana
parent 8f07ca4957
commit cf2bb62442
1 changed files with 4 additions and 4 deletions

View File

@ -35,8 +35,8 @@ import org.springframework.web.server.WebFilter
* fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain { * fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
* return http { * return http {
* authorizeExchange { * authorizeExchange {
* exchange("/public", permitAll) * authorize("/public", permitAll)
* exchange(anyExchange, authenticated) * authorize(anyExchange, authenticated)
* } * }
* } * }
* } * }
@ -207,8 +207,8 @@ class ServerHttpSecurityDsl(private val http: ServerHttpSecurity, private val in
* fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain { * fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
* return http { * return http {
* authorizeExchange { * authorizeExchange {
* exchange("/public", permitAll) * authorize("/public", permitAll)
* exchange(anyExchange, authenticated) * authorize(anyExchange, authenticated)
* } * }
* } * }
* } * }