Skip to content

Commit 2e58d4b

Browse files
committed
🔧 chore: quiz, question API 요청 권한 추가
1 parent 93f6f02 commit 2e58d4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/src/main/java/io/f1/backend/global/config/SecurityConfig.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public SecurityFilterChain userFilterChain(HttpSecurity http) throws Exception {
5555
.hasRole("ADMIN")
5656
.requestMatchers("/auth/me")
5757
.hasAnyRole("USER", "ADMIN")
58+
.requestMatchers("/quizzes/**")
59+
.hasAnyRole("USER", "ADMIN")
60+
.requestMatchers("/questions/**")
61+
.hasAnyRole("USER", "ADMIN")
5862
.anyRequest()
5963
.authenticated())
6064
.formLogin(

0 commit comments

Comments
 (0)