fixed show phone number

This commit is contained in:
SlimusMinus
2026-10-27 22:49:16 +03:00
parent aa7c9f25f0
commit 1cd72fbec4
27 changed files with 1054 additions and 15 deletions

View File

@@ -64,6 +64,8 @@ public class SecurityConfig {
.requestMatchers(HttpMethod.POST, "/api/v1/reviews/**").authenticated()
.requestMatchers(HttpMethod.PUT, "/api/v1/reviews/**").authenticated()
.requestMatchers(HttpMethod.DELETE, "/api/v1/reviews/**").authenticated()
// показ номера — без регистрации, защищён proof-of-work и лимитами (PhoneRevealService)
.requestMatchers(HttpMethod.POST, "/api/v1/posts/*/phone").permitAll()
.requestMatchers(HttpMethod.POST, "/api/v1/posts/**").authenticated()
.requestMatchers(HttpMethod.PUT, "/api/v1/posts/**").authenticated()
.requestMatchers(HttpMethod.DELETE, "/api/v1/posts/**").authenticated()