Skip to content

Commit

Permalink
feat: V2 API 접근 권한 설정 추가 (#881)
Browse files Browse the repository at this point in the history
feat: v2 api 권한 설정 추가
  • Loading branch information
Sangwook02 authored Feb 9, 2025
1 parent b56893d commit 39dd7c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@Tag(name = "Admin Study V2", description = "스터디 V2 어드민 API입니다.")
@RestController
@RequestMapping("/admin/studies/v2")
@RequestMapping("/v2/admin/studies")
@RequiredArgsConstructor
public class AdminStudyControllerV2 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.permitAll()
.requestMatchers("/onboarding/**")
.authenticated()
.requestMatchers("/admin/**")
.requestMatchers("/admin/**", "/v2/admin/**")
.hasRole("ADMIN")
.requestMatchers("/mentor/**")
.requestMatchers("/mentor/**", "/v2/mentor/**")
.hasAnyRole("MENTOR", "ADMIN")
.anyRequest()
.authenticated());
Expand Down

0 comments on commit 39dd7c3

Please sign in to comment.