We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e6b59 commit 10c2b51Copy full SHA for 10c2b51
1 file changed
rentplace/src/main/java/kattsyn/dev/rentplace/configs/SecurityConfig.java
@@ -70,6 +70,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
70
authorize -> authorize
71
.requestMatchers(PUBLIC_URLS).permitAll()
72
.requestMatchers(HttpMethod.GET, PUBLIC_URLS_GET).permitAll()
73
+ .requestMatchers(HttpMethod.POST, "/api/v1/properties/filtered/").permitAll()
74
.requestMatchers(HttpMethod.DELETE, ADMIN_URLS).hasAuthority("ROLE_ADMIN")
75
.requestMatchers(HttpMethod.POST, ADMIN_URLS).hasAuthority("ROLE_ADMIN")
76
.requestMatchers(HttpMethod.PATCH, ADMIN_URLS).hasAuthority("ROLE_ADMIN")
0 commit comments