Files
hlaeja-management/src/main/kotlin/ltd/hlaeja/security/authorize/AdminPaths.kt
2025-08-18 10:58:22 +02:00

11 lines
295 B
Kotlin

package ltd.hlaeja.security.authorize
import org.springframework.security.config.web.server.ServerHttpSecurity.AuthorizeExchangeSpec
fun AuthorizeExchangeSpec.adminPaths(): AuthorizeExchangeSpec.Access = pathMatchers(
"/accounts/**",
"/typse/**",
"/devices/**",
"/nodes/**",
)