Add comment module

This commit is contained in:
Tim
2025-06-30 19:46:57 +08:00
parent 04e7aed9b8
commit ff64500ffd
6 changed files with 188 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ public class SecurityConfig {
.authorizeHttpRequests(auth -> auth
.requestMatchers(HttpMethod.POST, "/api/auth/**").permitAll()
.requestMatchers(HttpMethod.GET, "/api/posts/**").permitAll()
.requestMatchers(HttpMethod.GET, "/api/comments/**").permitAll()
.requestMatchers("/api/admin/**").hasAuthority("ADMIN")
.anyRequest().authenticated()
)