Serve public icon files
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s

This commit is contained in:
androidlover5842
2026-01-27 22:37:52 +05:30
parent 8b430cbbcf
commit 58b7e57821
3 changed files with 24 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ class FirebaseAuthFilter(
|| path.matches(Regex("^/properties/[^/]+/room-types$"))
|| (path == "/image-tags" && request.method.equals("GET", true))
|| path == "/icons/png"
|| path.matches(Regex("^/icons/png/[^/]+$"))
}
override fun doFilterInternal(

View File

@@ -31,6 +31,7 @@ class SecurityConfig(
it.requestMatchers("/properties/*/room-types").permitAll()
it.requestMatchers(org.springframework.http.HttpMethod.GET, "/image-tags").permitAll()
it.requestMatchers("/icons/png").permitAll()
it.requestMatchers("/icons/png/*").permitAll()
it.anyRequest().authenticated()
}
.exceptionHandling {