Skip to content

Commit

Permalink
Feat: 페이지 url에 접근 권한 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
suminiee authored Apr 9, 2024
2 parents 2be6536 + 0e393ff commit e3842a4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers("/api/login").permitAll()
.requestMatchers("/api/admin/changePw", "/api/admin").hasRole("ADMIN")
.requestMatchers("/api/drug", "/api/findDrug").hasRole("ADMIN")
.requestMatchers("/accountSettings", "/drugs").hasRole("ADMIN")
.anyRequest().authenticated()
)

Expand Down

0 comments on commit e3842a4

Please sign in to comment.