Modify Post를 Note로 수정

This commit is contained in:
Daeil Choi
2023-02-06 13:55:02 +09:00
parent b7d58486ac
commit f6d702da7f
16 changed files with 173 additions and 173 deletions

View File

@@ -27,7 +27,7 @@ public class SecurityConfig {
.authorizeHttpRequests(auth -> auth
.antMatchers("/", "/home", "/signup", "/example",
"/css/**", "/h2-console/**").permitAll()
.antMatchers("/post").hasRole("USER")
.antMatchers("/note").hasRole("USER")
.antMatchers("/admin").hasRole("ADMIN")
.antMatchers(HttpMethod.POST, "/notice").hasRole("ADMIN")
.antMatchers(HttpMethod.DELETE, "/notice").hasRole("ADMIN")