Skip to content

Commit 1f7fe39

Browse files
committed
refactor: 유저 컨트롤러 Authorization 추가
1 parent d0ce1df commit 1f7fe39

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/main/java/com/back/web7_9_codecrete_be/global/security/SecurityConfig.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,13 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
5454
"/h2-console/**", // H2 Console
5555
"/api/v1/location/**", //location 정보 조회 도메인(임시)
5656
"/api/v1/concerts/**", // concert 정보 조회 도메인
57-
"/api/v1/artists/**" // artist 정보 저장 도메인(임시)
57+
"/api/v1/artists/**", // artist 정보 저장 도메인(임시)
58+
"/api/v1/users/**"
5859
).permitAll()
5960

6061
// ADMIN 전용
6162
.requestMatchers("/api/v1/admin/**").hasRole("ADMIN")
6263

63-
// USER, ADMIN 허용
64-
.requestMatchers("/api/v1/users/**").hasAnyRole("USER", "ADMIN")
65-
6664
.anyRequest().authenticated()
6765
)
6866

0 commit comments

Comments
 (0)