extract paths from SecurityConfiguration to authorize
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package ltd.hlaeja.security.authorize
|
||||
|
||||
import org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec
|
||||
|
||||
fun AuthorizeExchangeSpec.adminPaths(): AuthorizeExchangeSpec.Access = pathMatchers(
|
||||
"/account/**",
|
||||
"/type/**",
|
||||
)
|
||||
Reference in New Issue
Block a user