extract paths from SecurityConfiguration to authorize

This commit is contained in:
2025-07-31 23:04:36 +02:00
parent fd9c927b02
commit a1d0501fee
3 changed files with 40 additions and 23 deletions

View File

@@ -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/**",
)