Add room type images list endpoint
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s

This commit is contained in:
androidlover5842
2026-01-27 23:34:37 +05:30
parent e4c38a699f
commit df351204ed
4 changed files with 99 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ class FirebaseAuthFilter(
return path.matches(Regex("^/properties/[^/]+/rooms/[^/]+/images/[^/]+/file$"))
|| path.matches(Regex("^/properties/[^/]+/rooms/[^/]+/images$"))
|| path.matches(Regex("^/properties/[^/]+/room-types$"))
|| path.matches(Regex("^/properties/[^/]+/room-types/[^/]+/images$"))
|| (path == "/image-tags" && request.method.equals("GET", true))
|| path == "/icons/png"
|| path.matches(Regex("^/icons/png/[^/]+$"))

View File

@@ -29,6 +29,7 @@ class SecurityConfig(
it.requestMatchers("/properties/*/rooms/*/images/*/file").permitAll()
it.requestMatchers("/properties/*/rooms/*/images").permitAll()
it.requestMatchers("/properties/*/room-types").permitAll()
it.requestMatchers("/properties/*/room-types/*/images").permitAll()
it.requestMatchers(org.springframework.http.HttpMethod.GET, "/image-tags").permitAll()
it.requestMatchers("/icons/png").permitAll()
it.requestMatchers("/icons/png/*").permitAll()