Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,16 @@ 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)
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),
// Rating endpoints - GET only
new PublicEndpoint("/api/rating", HttpMethod.GET),
new PublicEndpoint("/api/rating/target/*", HttpMethod.GET)
);

private final AntPathMatcher pathMatcher = new AntPathMatcher();
Expand Down