add test page

This commit is contained in:
androidlover5842
2026-01-26 16:24:16 +05:30
parent b2441fe291
commit 8997cffc16
2 changed files with 21 additions and 1 deletions

View File

@@ -16,7 +16,10 @@ class SecurityConfig(
http
.csrf { it.disable() }
.sessionManagement { it.sessionCreationPolicy(SessionCreationPolicy.STATELESS) }
.authorizeHttpRequests { it.anyRequest().authenticated() }
.authorizeHttpRequests {
it.requestMatchers("/", "/health").permitAll()
it.anyRequest().authenticated()
}
.addFilterBefore(firebaseAuthFilter, UsernamePasswordAuthenticationFilter::class.java)
return http.build()
}