Allow public image tag list
Some checks failed
build-and-deploy / build-deploy (push) Has been cancelled

This commit is contained in:
androidlover5842
2026-01-27 19:08:17 +05:30
parent 4a40bd648c
commit 5b1564cdb3
3 changed files with 2 additions and 1 deletions

View File

@@ -33,7 +33,6 @@ class RoomImageTags(
fun listTags(
@AuthenticationPrincipal principal: MyPrincipal?
): List<RoomImageTagResponse> {
requirePrincipal(principal)
return roomImageTagRepo.findAllByOrderByName().map { it.toResponse() }
}

View File

@@ -27,6 +27,7 @@ class FirebaseAuthFilter(
}
return path.matches(Regex("^/properties/[^/]+/rooms/[^/]+/images/[^/]+/file$"))
|| path.matches(Regex("^/properties/[^/]+/room-types$"))
|| path == "/image-tags"
}
override fun doFilterInternal(

View File

@@ -28,6 +28,7 @@ class SecurityConfig(
it.requestMatchers("/", "/health", "/auth/**").permitAll()
it.requestMatchers("/properties/*/rooms/*/images/*/file").permitAll()
it.requestMatchers("/properties/*/room-types").permitAll()
it.requestMatchers("/image-tags").permitAll()
it.anyRequest().authenticated()
}
.exceptionHandling {