From a4c3a98a49217dc44df28e8314583ef2679cd6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C4=8Cuturi=C4=87?= Date: Tue, 17 Feb 2026 13:31:31 +0100 Subject: [PATCH 1/3] fix: Update public endpoints for accommodation gRPC --- .../com/devoops/gateway/filter/JwtAuthenticationFilter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java b/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java index 2c929c3..e0caf56 100644 --- a/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java +++ b/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java @@ -41,7 +41,10 @@ boolean matchesMethod(String method) { // Accommodation endpoints - GET only new PublicEndpoint("/api/accommodation", HttpMethod.GET), new PublicEndpoint("/api/accommodation/*/photos", HttpMethod.GET), - new PublicEndpoint("/api/accommodation/*/photos/*", HttpMethod.GET) + new PublicEndpoint("/api/accommodation/*/photos/*", HttpMethod.GET), + // Availability endpoints - GET only + new PublicEndpoint("/api/accommodation/*/availability", HttpMethod.GET), + new PublicEndpoint("/api/accommodation/*/availability/*", HttpMethod.GET) ); private final AntPathMatcher pathMatcher = new AntPathMatcher(); From 890b1143d6facafd29de22dc72688846a7b21e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Jano=C5=A1evi=C4=87?= Date: Wed, 18 Feb 2026 22:29:43 +0100 Subject: [PATCH 2/3] fix: Add public endpoints for accommodation --- .../com/devoops/gateway/filter/JwtAuthenticationFilter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java b/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java index e0caf56..55026c3 100644 --- a/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java +++ b/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java @@ -40,6 +40,8 @@ boolean matchesMethod(String method) { new PublicEndpoint("/actuator/**"), // Accommodation endpoints - GET only new PublicEndpoint("/api/accommodation", HttpMethod.GET), + new PublicEndpoint("/api/accommodation/*", HttpMethod.GET), + new PublicEndpoint("/api/accommodation/host/*", HttpMethod.GET), new PublicEndpoint("/api/accommodation/*/photos", HttpMethod.GET), new PublicEndpoint("/api/accommodation/*/photos/*", HttpMethod.GET), // Availability endpoints - GET only From c318b93a88c81bc66d47b4ab5927099981c5ff72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Jano=C5=A1evi=C4=87?= Date: Sun, 22 Feb 2026 17:06:03 +0100 Subject: [PATCH 3/3] fix: Add public endpoints for rating --- .../com/devoops/gateway/filter/JwtAuthenticationFilter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java b/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java index 55026c3..8623229 100644 --- a/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java +++ b/src/main/java/com/devoops/gateway/filter/JwtAuthenticationFilter.java @@ -46,7 +46,10 @@ boolean matchesMethod(String method) { new PublicEndpoint("/api/accommodation/*/photos/*", HttpMethod.GET), // Availability endpoints - GET only new PublicEndpoint("/api/accommodation/*/availability", HttpMethod.GET), - new PublicEndpoint("/api/accommodation/*/availability/*", HttpMethod.GET) + new PublicEndpoint("/api/accommodation/*/availability/*", HttpMethod.GET), + // Rating endpoints - GET only + new PublicEndpoint("/api/rating", HttpMethod.GET), + new PublicEndpoint("/api/rating/target/*", HttpMethod.GET) ); private final AntPathMatcher pathMatcher = new AntPathMatcher();