Skip to content

Commit

Permalink
Feat: 페이지 url에 접근 권한 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
suminiee committed Apr 9, 2024
1 parent 2be6536 commit 0e393ff
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 0e393ff

Please sign in to comment.