Skip to content

Commit

Permalink
back spring: update endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Arabasta committed Aug 18, 2024
1 parent 732995e commit f9af578
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,16 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
// CUSTOMER role required to access /api/health/customer
.requestMatchers(
"/api/v1/health/customer",
"/api/v1/customer/**"
"/api/v1/customer/**",
"/api/v1/backtest/**"
).hasAuthority("ROLE_CUSTOMER")

// ADMIN role required to access /api/health/admin
.requestMatchers(
"/api/v1/health/admin",
"/api/v1/admin/**",
"/api/v1/dev/**"
"/api/v1/dev/**",
"/api/v1/backtest/**"

).hasAuthority("ROLE_ADMIN")

Expand Down

0 comments on commit f9af578

Please sign in to comment.